fix: await reacts inside try/catch (#13)

This commit is contained in:
Sugden 2019-11-21 20:51:46 +00:00 committed by 1Computer1
parent ea41373224
commit ff647b742d

View file

@ -35,13 +35,13 @@ class MessageInvalidListener extends Listener {
if (!message.guild || message.channel.permissionsFor(this.client.user).has('ADD_REACTIONS')) {
try {
if (reaction) {
reaction.users.remove();
await reaction.users.remove();
}
if (ok) {
message.react('✔');
await message.react('✔');
} else {
message.react('✖');
await message.react('✖');
}
} catch (e) {
// Ignore.