mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-17 15:15:02 +00:00
ReactionRoles: fix error when removing old reactions
This commit is contained in:
parent
6a6df56947
commit
aff89511bc
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ export class ReactionRolesPlugin extends Plugin {
|
|||
for (const rolePair of toRemove) {
|
||||
await this.reactionRoles.removeFromMessage(targetMessage.id, rolePair[0]);
|
||||
|
||||
for (const reaction of targetMessage.reactions.values()) {
|
||||
for (const reaction of Object.values(targetMessage.reactions)) {
|
||||
if (reaction.emoji.id === rolePair[0] || reaction.emoji.name === rolePair[0]) {
|
||||
reaction.remove(this.bot.user.id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue