3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-08 11:37:20 +00:00

Properly order reaction roles

This commit is contained in:
Dark 2021-06-06 02:41:06 +02:00
parent 7124898568
commit 43c23263f0
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8
7 changed files with 41 additions and 9 deletions

View file

@ -61,7 +61,7 @@ export const AddReactionRoleEvt = reactionRolesEvt({
setTimeout(() => {
pluginData.state.reactionRemoveQueue.add(async () => {
const wait = sleep(1500);
await meta.args.reaction.remove().catch(noop);
await meta.args.reaction.users.remove(userId).catch(noop);
await wait;
});
}, 1500);