staffrole bugs

master
Kit Kasune 4 years ago
parent a6f02ef620
commit a2d7c03e37
  1. 4
      commands/staffrole.js

@ -38,8 +38,8 @@ module.exports = {
return upm.edit(new Discord.MessageEmbed() return upm.edit(new Discord.MessageEmbed()
.setAuthor('Staff role updated!', message.author.avatarURL()) .setAuthor('Staff role updated!', message.author.avatarURL())
.setDescription(`<@${tguild.staffrole}> can now edit my settings in this server.`) .setDescription(`<@${tguild.staffrole}> can now edit my settings in this server.`)
.addField('Auditing Admin', `<@${message.member.id}>`, true) .addField('Auditing Admin', `<@&${message.member.id}>`, true)
.addField('Role-Holders', `${message.guild.members.cache.filter(m => m.roles.cache.has(tguild.staffrole) && !client.users.cache.get(m.id).bot)}+ members have this role`, true) .addField('Role-Holders', `${message.guild.members.cache.filter(m => m.roles.cache.has(tguild.staffrole) && !client.users.cache.get(m.id).bot).size}+ members have this role`, true)
.setColor('c375f0') .setColor('c375f0')
.setFooter('Natsuki', client.user.avatarURL()) .setFooter('Natsuki', client.user.avatarURL())
.setTimestamp() .setTimestamp()

Loading…
Cancel
Save