Simpleboy353 / REAPER-2.0

A multi-purpose discord bot made using Discord.js V14. Includes Logging, Welcomer, Slash Commands, Menu based Help Command and so much more!
GNU General Public License v3.0
327 stars 225 forks source link

Prefix.js command does not work. #6

Closed KainesLaw closed 3 years ago

KainesLaw commented 3 years ago

First, the command "if (message.member.hasPermission("ADMINISTRATOR")) return message.channel.send(You don't have the required Permissions!)" does not work because you're checking if they HAVE the permission, not if they don't. To fix the issue, just put a ! infront of the condition. For example: "if (message.member.hasPermission("ADMINISTRATOR")) return message.channel.send(You don't have the required Permissions!)" would turn to "!if (message.member.hasPermission("ADMINISTRATOR")) return message.channel.send(You don't have the required Permissions!)". Also, mongoose is outdated. You should switch it to something more compatible. I tried the command and the command does not work.

Simpleboy353 commented 3 years ago

Fixed