Improved command error handling

This commit is contained in:
2022-07-19 21:55:42 +02:00
parent 5bf89f03da
commit d617c6b453
3 changed files with 4 additions and 3 deletions

View File

@@ -39,7 +39,6 @@ class BaseOnCommandErrorEvent(OnCommandErrorABC):
uid = uuid.uuid4()
self._logger.error(__name__, f'Got error: {type(error).__name__} UID: {uid}')
# Todo: translate error messages !!!
if isinstance(error, commands.MissingRequiredArgument):
await self._messenger.send_ctx_msg(ctx, self._t.transform('common.errors.missing_required_argument'), without_tracking=True)