mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-12 16:59:50 +00:00
Fix typo in context menu error message
This commit is contained in:
parent
38ba3b8d23
commit
30c7a2179f
@ -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'
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user