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) {
|
if (rep === null) {
|
||||||
// Remove reaction and quit
|
// Remove reaction and quit
|
||||||
try {
|
try {
|
||||||
reaction.remove();
|
await reaction.remove();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Missing permissions
|
// Missing permissions
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
Loading…
Reference in New Issue
Block a user