Skip to content

Commit

Permalink
🐛 Fix staff command
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed May 14, 2021
1 parent dc5c887 commit 46a8f4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/General/staff.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class Staff extends Command {
}

async run (message, args, data) {
const guild = await message.guild.members.fetch();
const administrators = guild.members.cache.filter((m) => m.hasPermission("ADMINISTRATOR") && !m.user.bot);
const moderators = guild.members.cache.filter((m) => !administrators.has(m.id) && m.hasPermission("MANAGE_MESSAGES") && !m.user.bot);
await message.guild.members.fetch();
const administrators = message.guild.members.cache.filter((m) => m.hasPermission("ADMINISTRATOR") && !m.user.bot);
const moderators = message.guild.members.cache.filter((m) => !administrators.has(m.id) && m.hasPermission("MANAGE_MESSAGES") && !m.user.bot);
const embed = new Discord.MessageEmbed()
.setAuthor(message.translate("general/staff:TITLE", {
guild: message.guild.name
Expand Down

0 comments on commit 46a8f4a

Please sign in to comment.