bugfix: await reaction removal

This commit is contained in:
Baipyrus 2024-04-04 09:40:23 +02:00
parent db898a2a36
commit 9091e1c023

View File

@ -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);