Update messageCreate.js

This commit is contained in:
SowinskiBraeden authored and GitHub committed 2022-07-25 21:19:39 -07:00
1 parent 0d69c6c79d
commit f456891373
1 file changed
-18
-18
View File
@@ -35,24 +35,6 @@ module.exports = async (client, message) => {
//Executing the codes when we get the command or aliases //Executing the codes when we get the command or aliases
if (cmd) { if (cmd) {
if (
(cmd.permissions &&
cmd.permissions.channel &&
!message.channel
.permissionsFor(client.user)
.has(cmd.permissions.channel)) ||
(cmd.permissions &&
cmd.permissions.member &&
!message.channel
.permissionsFor(message.member)
.has(cmd.permissions.member))
)
return client.sendError(
message.channel,
"Missing Permissions!" + GuildDB.DJ
? " You need the correct role to access this command."
: ""
);
cmd.run(client, message, args, { GuildDB }); cmd.run(client, message, args, { GuildDB });
client.CommandsRan++; client.CommandsRan++;
} else return; } else return;