Fix Role Info Bug

This commit is contained in:
Daniel Odendahl Jr
2017-09-27 17:10:11 +00:00
parent a698955e00
commit 6fa706f40c
+2 -1
View File
@@ -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',