Skip to content

Commit 760227d

Browse files
authored
fix(message-parser): do not run commands when the bot has been timed out (#373)
1 parent abe36ae commit 760227d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/listeners/command-handler/CoreMessageParser.ts

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ export class CoreListener extends Listener<typeof Events.PreMessageParsed> {
4444
const me = message.guild!.me ?? (message.client.id ? await message.guild!.members.fetch(message.client.id) : null);
4545
if (!me) return false;
4646

47+
if (me.isCommunicationDisabled()) return false;
48+
4749
const channel = message.channel as GuildBasedChannelTypes;
4850
return channel.permissionsFor(me).has(this.requiredPermissions, false);
4951
}

0 commit comments

Comments
 (0)