diff --git a/src/main/run.py b/src/main/run.py index 3f20b27..a5884a6 100644 --- a/src/main/run.py +++ b/src/main/run.py @@ -54,9 +54,7 @@ log.basicConfig(level=log.WARNING) def get_prefix(bot, message): - if isinstance(message.guild, d.Guild) and message.guild.id in u.settings['prefixes']: - return u.settings['prefixes'][message.guild.id] - return u.config['prefix'] + return u.settings['prefixes'].get(message.guild.id, u.config['prefix']) help_formatter = HelpFormatter(show_check_failure=True)