1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-30 18:53:30 +00:00

State: Fixed breaking change from previous Gateway change

This commit is contained in:
diamondburned 2020-10-28 19:47:22 -07:00
parent b8e4b2cf56
commit b7b8118d0b

View file

@ -240,7 +240,7 @@ func (s *State) onEvent(iface interface{}) {
return true return true
}) })
case *gateway.MessageReactionRemoveEmoji: case *gateway.MessageReactionRemoveEmojiEvent:
s.editMessage(ev.ChannelID, ev.MessageID, func(m *discord.Message) bool { s.editMessage(ev.ChannelID, ev.MessageID, func(m *discord.Message) bool {
var i = findReaction(m.Reactions, ev.Emoji) var i = findReaction(m.Reactions, ev.Emoji)
if i < 0 { if i < 0 {