modules.base.errors.module¶
Module Contents¶
Attributes¶
- modules.base.errors.module.tr¶
- modules.base.errors.module.bot_log¶
- modules.base.errors.module.guild_log¶
- class modules.base.errors.module.Errors(bot)¶
Error handling module.
- async on_error(event, *args, **kwargs)¶
- async on_command_error(self, ctx: guilded.ext.commands.Context, error: guilded.ext.commands.CommandError)¶
Handle bot exceptions.
- __get_error_message(ctx: guilded.ext.commands.Context, error: Exception) Tuple[str, str, bool]¶
Get message for the error.
- Parameters
ctx – The invocation context.
error – Detected exception.
- Returns
title (Translated error name), content (Translated description), write_tb (Whether to display traceback in the log),