mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-16 11:58:10 +00:00
Fix typo in context menu error message
This commit is contained in:
@@ -426,7 +426,7 @@ def _get_context_menu_parameter(func: ContextMenuCallback) -> Tuple[str, Any, Ap
|
|||||||
if len(params) != 2:
|
if len(params) != 2:
|
||||||
msg = (
|
msg = (
|
||||||
f'context menu callback {func.__qualname__!r} requires 2 parameters, '
|
f'context menu callback {func.__qualname__!r} requires 2 parameters, '
|
||||||
'the first one being the annotation and the other one explicitly '
|
'the first one being the interaction and the other one explicitly '
|
||||||
'annotated with either discord.Message, discord.User, discord.Member, '
|
'annotated with either discord.Message, discord.User, discord.Member, '
|
||||||
'or a typing.Union of discord.Member and discord.User'
|
'or a typing.Union of discord.Member and discord.User'
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user