Skip to content

Commit

Permalink
don't need the "me" check?
Browse files Browse the repository at this point in the history
  • Loading branch information
mangofeet committed Feb 15, 2023
1 parent 26b087a commit 549af85
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -703,11 +703,7 @@ export class DiscordBot {
const reaction = msg.reactions.resolve(storeReaction.Emoji)
if (!reaction) {
log.warn(`Could not find reaction for emoji ${storeReaction.Emoji}`)
return
}
if (!reaction.me) {
log.warn(`This client didn't react with ${storeReaction.Emoji}`)
return
continue
}
await reaction.users.remove()
this.channelLock.release(msg.channel.id);
Expand Down

0 comments on commit 549af85

Please sign in to comment.