Other kinds of reaction removals

This commit is contained in:
Cadence Ember 2023-09-25 23:15:36 +13:00
commit c1cbdfee82
5 changed files with 151 additions and 42 deletions

View file

@ -158,6 +158,12 @@ const utils = {
} else if (message.t === "MESSAGE_REACTION_REMOVE") {
await eventDispatcher.onReactionRemove(client, message.d)
} else if (message.t === "MESSAGE_REACTION_REMOVE_EMOJI") {
await eventDispatcher.onReactionEmojiRemove(client, message.d)
} else if (message.t === "MESSAGE_REACTION_REMOVE_ALL") {
await eventDispatcher.onRemoveAllReactions(client, message.d)
}
} catch (e) {
// Let OOYE try to handle errors too