mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-09-19 08:12:59 +00:00
Fix: To remove unicode emojis the emoji must be passed
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
0345d3c90f
commit
4419232fe9
@ -133,7 +133,12 @@ func (m modReactionRole) Setup() error {
|
||||
okCode := str.StringInSlice(compiledName, reactionList)
|
||||
|
||||
if !okCode && !okName {
|
||||
if err = m.discord.MessageReactionsRemoveEmoji(channelID, managedMsg.ID, r.Emoji.ID); err != nil {
|
||||
id := r.Emoji.ID
|
||||
if id == "" {
|
||||
id = r.Emoji.Name
|
||||
}
|
||||
|
||||
if err = m.discord.MessageReactionsRemoveEmoji(channelID, managedMsg.ID, id); err != nil {
|
||||
return errors.Wrap(err, "removing reaction emoji")
|
||||
}
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user