Forgot to use or instead of and

This commit is contained in:
TheEssem 2019-12-16 17:55:08 -06:00
parent 1e8c7a6497
commit 6c80d5f67c
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ module.exports = async (message) => {
if (!message.channel.guild) return;
// don't run command if bot can't send messages
if (!message.channel.guild.members.get(client.user.id).permission.has("sendMessages") && !message.channel.permissionsOf(client.user.id).has("sendMessages")) return;
if (!message.channel.guild.members.get(client.user.id).permission.has("sendMessages") || !message.channel.permissionsOf(client.user.id).has("sendMessages")) return;
// prefix can be a mention or a set of special characters
const prefixMention = new RegExp(`^<@!?${client.user.id}> `);