diff --git a/commands/guild-info/role-info.js b/commands/guild-info/role-info.js index 241b0f15..66ee0bf5 100644 --- a/commands/guild-info/role-info.js +++ b/commands/guild-info/role-info.js @@ -2,7 +2,6 @@ const Command = require('../../structures/Command'); const { MessageEmbed } = require('discord.js'); const moment = require('moment'); const perms = require('../../assets/json/permissions'); -const { placeholder } = require('../../structures/Util'); module.exports = class RoleInfoCommand extends Command { constructor(client) { @@ -28,23 +27,20 @@ module.exports = class RoleInfoCommand extends Command { const { role } = args; const embed = new MessageEmbed() .setColor(role.hexColor) - .setThumbnail(placeholder({ color: role.hexColor.replace('#', '') })) .addField('❯ Name', role.name, true) .addField('❯ ID', role.id, true) - .addField('❯ Creation Date', - moment(role.createdAt).format('MMMM Do YYYY'), true) .addField('❯ Color', role.hexColor.toUpperCase(), true) + .addField('❯ Creation Date', + moment(role.createdAt).format('MMMM Do YYYY'), true) .addField('❯ Hoisted', role.hoist ? 'Yes' : 'No', true) .addField('❯ Mentionable', role.mentionable ? 'Yes' : 'No', true) - .addField('❯ Position', - msg.guild.roles.size - role.calculatedPosition, true) .addField('❯ Permissions', - Object.keys(role.serialize()).filter((perm) => role.serialize()[perm]).map((perm) => perms[perm])); + Object.keys(perms).filter((perm) => role.serialize()[perm]).map((perm) => perms[perm]).join(', ')); return msg.embed(embed); } }; diff --git a/structures/Util.js b/structures/Util.js index f42d5ccb..4c62f4d7 100644 --- a/structures/Util.js +++ b/structures/Util.js @@ -12,11 +12,6 @@ class Util { .replace(/(\[i\]|\[\/i\])/g, '*'); } - static placeholder({ size, color }) { - if (!size) size = '200x200'; - return `http://via.placeholder.com/${size}/${color}/${color}`; - } - static dBots(count, id) { snekfetch .post(`https://bots.discord.pw/api/bots/${id}/stats`)