mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-23 17:47:27 +00:00
Update member function for role check
This commit is contained in:
parent
5225287699
commit
3b21e18b16
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ let statsBotChannels = config.get('statsbot');
|
||||||
|
|
||||||
// Checks if user is allowed to use a command only for mods/team members
|
// Checks if user is allowed to use a command only for mods/team members
|
||||||
exports.hasPerms = function(msg) {
|
exports.hasPerms = function(msg) {
|
||||||
return msg.member.roles !== null && msg.member.roles.some(r => permRanks.perms.includes(r.name));
|
return msg.member.roles !== null && msg.member.roles.cache.some(r => permRanks.perms.includes(r.name));
|
||||||
};
|
};
|
||||||
|
|
||||||
// Check if command was sent in dm
|
// Check if command was sent in dm
|
||||||
|
|
Loading…
Add table
Reference in a new issue