Fix typo in context menu error message

This commit is contained in:
Snaptraks 2022-05-17 16:41:29 -04:00 committed by GitHub
parent 38ba3b8d23
commit 30c7a2179f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'
) )