fix: await reacts inside try/catch (#13)
This commit is contained in:
parent
ea41373224
commit
ff647b742d
1 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue