debug management

This commit is contained in:
SowinskiBraeden committed 2022-07-25 21:58:13 -07:00
1 parent 74475e6549
commit 631a348717
22 files changed
+100 -24

No files matched your search

+2 -22
View File
@@ -31,26 +31,6 @@ module.exports = async (client, message) => {
client.commands.find((x) => x.aliases && x.aliases.includes(command));
//Executing the codes when we get the command or aliases
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 });
client.CommandsRan++;
} else return;
if (cmd) cmd.run(client, message, args, { GuildDB });
else return;
};