diff --git a/tuxbot/core/bot.py b/tuxbot/core/bot.py index 9712591..c48366a 100644 --- a/tuxbot/core/bot.py +++ b/tuxbot/core/bot.py @@ -253,7 +253,7 @@ class Tux(commands.AutoShardedBot): ctx: ContextPlus = await self.get_context(message) if ctx is not None and ctx.valid: - if ctx.command in search_for( + if message.guild and ctx.command in search_for( self.config.Servers, message.guild.id, "disabled_command", [] ): raise exceptions.DisabledCommandByServerOwner