generated from Baipyrus/DiscordJS-Template
bugfix: await reaction removal
This commit is contained in:
parent
db898a2a36
commit
9091e1c023
@ -34,7 +34,7 @@ export async function execute(reaction, user) {
|
||||
if (rep === null) {
|
||||
// Remove reaction and quit
|
||||
try {
|
||||
reaction.remove();
|
||||
await reaction.remove();
|
||||
} catch (error) {
|
||||
// Missing permissions
|
||||
console.error(error);
|
||||
|
Loading…
Reference in New Issue
Block a user