Skip to content

Commit

Permalink
fix(clean): Remove emoji permission requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Crespi committed Dec 10, 2019
1 parent 5ee3ea6 commit b941b73
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/moderation/commands/purge/clean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ export default class extends Command {
}
],
group: CommandGroup.Moderation,
botPermissions: [
GuildPermission.READ_MESSAGE_HISTORY,
GuildPermission.MANAGE_MESSAGES,
GuildPermission.MANAGE_EMOJIS
],
botPermissions: [GuildPermission.READ_MESSAGE_HISTORY, GuildPermission.MANAGE_MESSAGES],
defaultAdminOnly: true,
guildOnly: true
});
Expand Down Expand Up @@ -91,7 +87,10 @@ export default class extends Command {
messagesToBeDeleted.push(message);

try {
await this.client.deleteMessages(message.channel.id, messagesToBeDeleted.map(m => m.id));
await this.client.deleteMessages(
message.channel.id,
messagesToBeDeleted.map(m => m.id)
);

embed.title = t('cmd.clean.title');
embed.description = t('cmd.clean.text', {
Expand Down

0 comments on commit b941b73

Please sign in to comment.