Remove old reactions on edits
This commit is contained in:
parent
7073853834
commit
bb8e6d5cfa
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ class MessageInvalidListener extends Listener {
|
||||||
|
|
||||||
let reaction;
|
let reaction;
|
||||||
if (!message.guild || message.channel.permissionsFor(this.client.user).has('ADD_REACTIONS')) {
|
if (!message.guild || message.channel.permissionsFor(this.client.user).has('ADD_REACTIONS')) {
|
||||||
|
await Promise.all(message.reactions.filter(r => r.me).map(r => r.users.remove()));
|
||||||
reaction = await message.react('📝');
|
reaction = await message.react('📝');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue