From 0bcb0d0e3ce395d42a5b1dae61b0090791ee018d Mon Sep 17 00:00:00 2001 From: Puncher <65789180+Puncher1@users.noreply.github.com> Date: Sun, 27 Mar 2022 05:41:05 +0200 Subject: [PATCH] Allow context menus have ? and ! in their name --- discord/app_commands/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/app_commands/commands.py b/discord/app_commands/commands.py index 67bbff535..bc7229939 100644 --- a/discord/app_commands/commands.py +++ b/discord/app_commands/commands.py @@ -126,7 +126,7 @@ else: CheckInputParameter = Union['Command[Any, ..., Any]', 'ContextMenu', CommandCallback, ContextMenuCallback] VALID_SLASH_COMMAND_NAME = re.compile(r'^[\w-]{1,32}$') -VALID_CONTEXT_MENU_NAME = re.compile(r'^[\w\s-]{1,32}$') +VALID_CONTEXT_MENU_NAME = re.compile(r'^[?!\w\s-]{1,32}$') CAMEL_CASE_REGEX = re.compile(r'(?