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'(?