Added extremely basic multi-role support

This commit is contained in:
Isaac (eartharoid)
2020-09-20 22:01:10 +01:00
parent 8f585b8c76
commit 1c226e8f7e
11 changed files with 32 additions and 15 deletions

View File

@@ -14,5 +14,16 @@ module.exports = {
*/
plural(word, num) {
return num !== 1 ? word + 's' : word;
},
isStaff(member) {
let staff = false;
member.client.config.staff_roles.forEach(id => {
if (member.roles.cache.has(id))
staff = true;
});
return staff;
}
};