mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 17:59:52 +00:00
Allow context menus have ? and ! in their name
This commit is contained in:
@ -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'(?<!^)(?=[A-Z])')
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user