command translator quick fix (#2870)

* command translator quick fix

* command translator quick fix
This commit is contained in:
Michael H 2019-07-13 23:55:47 -04:00 committed by Toby Harradine
parent 8676dd3ce3
commit 49a75b5f19

View File

@ -174,7 +174,7 @@ class Command(CogCommandMixin, commands.Command):
if self._help_override is not None:
return self._help_override
if self.translator is None:
translator = lambda s: s
translator = getattr(self.cog, "__translator__", lambda s: s)
else:
translator = self.translator
command_doc = self.callback.__doc__