Forgot to use or instead of and
This commit is contained in:
parent
1e8c7a6497
commit
6c80d5f67c
1 changed files with 1 additions and 1 deletions
|
@ -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}> `);
|
||||
|
|
Loading…
Reference in a new issue