Browse Source

Make sure to send role info embed

master
Abheek Dhawan 4 years ago
parent
commit
573b8619cb
  1. 3
      bot.js

3
bot.js

@ -356,7 +356,7 @@ async function roleInfo(message) {
const role = roles.array()[0];
const roleCreateEmbed = new Discord.MessageEmbed()
const roleInfoEmbed = new Discord.MessageEmbed()
.setTitle(`Role \`${role.name}\` Info`)
.setAuthor(message.author.tag, message.author.avatarURL())
.addField("Permissions", role.permissions.toArray().map(p => `\`${p}\``.toLowerCase()).join(' • '))
@ -364,6 +364,7 @@ async function roleInfo(message) {
.setFooter("Role ID: " + role.id)
.setTimestamp()
.setColor('00aaff');
message.channel.send(roleInfoEmbed)
}
async function addRole(message) {

Loading…
Cancel
Save