Remove old reactions on edits

This commit is contained in:
1computer1 2019-03-15 02:42:40 -04:00
parent 7073853834
commit bb8e6d5cfa

View file

@ -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('📝');
} }