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')) {
|
if (!message.guild || message.channel.permissionsFor(this.client.user).has('ADD_REACTIONS')) {
|
||||||
try {
|
try {
|
||||||
if (reaction) {
|
if (reaction) {
|
||||||
reaction.users.remove();
|
await reaction.users.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ok) {
|
if (ok) {
|
||||||
message.react('✔');
|
await message.react('✔');
|
||||||
} else {
|
} else {
|
||||||
message.react('✖');
|
await message.react('✖');
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// Ignore.
|
// Ignore.
|
||||||
|
|
Loading…
Reference in a new issue