We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abe36ae commit 760227dCopy full SHA for 760227d
src/listeners/command-handler/CoreMessageParser.ts
@@ -44,6 +44,8 @@ export class CoreListener extends Listener<typeof Events.PreMessageParsed> {
44
const me = message.guild!.me ?? (message.client.id ? await message.guild!.members.fetch(message.client.id) : null);
45
if (!me) return false;
46
47
+ if (me.isCommunicationDisabled()) return false;
48
+
49
const channel = message.channel as GuildBasedChannelTypes;
50
return channel.permissionsFor(me).has(this.requiredPermissions, false);
51
}
0 commit comments