mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix Role Info Bug
This commit is contained in:
@@ -23,7 +23,8 @@ module.exports = class RoleInfoCommand extends Command {
|
||||
}
|
||||
|
||||
run(msg, { role }) {
|
||||
const perms = Object.keys(util.permissions).filter(perm => role.serialize()[perm]);
|
||||
const serialized = role.permissions.serialize();
|
||||
const perms = Object.keys(util.permissions).filter(perm => serialized[perm]);
|
||||
const embed = new MessageEmbed()
|
||||
.setColor(role.hexColor)
|
||||
.addField('❯ Name',
|
||||
|
||||
Reference in New Issue
Block a user