mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
command translator quick fix (#2870)
* command translator quick fix * command translator quick fix
This commit is contained in:
parent
8676dd3ce3
commit
49a75b5f19
@ -174,7 +174,7 @@ class Command(CogCommandMixin, commands.Command):
|
|||||||
if self._help_override is not None:
|
if self._help_override is not None:
|
||||||
return self._help_override
|
return self._help_override
|
||||||
if self.translator is None:
|
if self.translator is None:
|
||||||
translator = lambda s: s
|
translator = getattr(self.cog, "__translator__", lambda s: s)
|
||||||
else:
|
else:
|
||||||
translator = self.translator
|
translator = self.translator
|
||||||
command_doc = self.callback.__doc__
|
command_doc = self.callback.__doc__
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user