fix(core): fix crash on DM message
This commit is contained in:
parent
434021ecb9
commit
f7176d917c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue