From 667c8e7caa80021ee6cb4b1227f0c4ae6320170f Mon Sep 17 00:00:00 2001 From: Gnome Date: Wed, 1 Sep 2021 12:45:39 +0100 Subject: [PATCH] Rename normmal_command to message_command --- discord/ext/commands/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 83730243..876967cc 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -331,7 +331,7 @@ class Command(_BaseCommand, Generic[CogT, P, T]): self.callback = func self.enabled: bool = kwargs.get('enabled', True) self.slash_command: Optional[bool] = kwargs.get("slash_command", None) - self.normal_command: Optional[bool] = kwargs.get("normal_command", None) + self.message_command: Optional[bool] = kwargs.get("message_command", None) help_doc = kwargs.get('help') if help_doc is not None: @@ -1126,7 +1126,7 @@ class Command(_BaseCommand, Generic[CogT, P, T]): and self.slash_command is False ) or ( ctx.interaction is None - and self.normal_command is False + and self.message_command is False ): raise DisabledCommand(f'{self.name} command is disabled')