v2.0 #55

Merged
Vylpes merged 73 commits from develop into main 2021-10-04 19:45:15 +01:00
Showing only changes of commit e50630e4f4 - Show all commits

View file

@ -50,10 +50,12 @@ class util {
// Get the ids of the users that are only permitted to run this command
let users = command.users;
// If the user isn't in the list, don't run the command
if (!users.includes(message.member.id)) {
message.reply(`You do not have permission to run this command`);
return;
// If the command has any limits, limit the command, otherwise default to anyone
if (users.length > 0) {
if (!users.includes(message.member.id)) {
message.reply(`You do not have permission to run this command`);
return;
}
}
// Run the command and pass the command context with it