feat: Allow multiples roles to train the bot (#8)

This commit is contained in:
GeekCorner
2023-06-24 21:46:31 +02:00
committed by GitHub
parent 8b9f45dc22
commit 1cd481040f
7 changed files with 40 additions and 34 deletions

View File

@@ -0,0 +1,8 @@
export function checkForPerms(config, member) {
for (let role in config.discord.trainRoles) {
if (member.roles.cache.get(role)) {
return true;
}
}
return false;
}