parent
ddfa449a30
commit
98391aeafd
|
@ -158,7 +158,7 @@ func reactionRemoveHandler() func(s *discordgo.Session, m *discordgo.MessageReac
|
||||||
|
|
||||||
func reactionHandler(add bool, s *discordgo.Session, m *discordgo.MessageReaction) {
|
func reactionHandler(add bool, s *discordgo.Session, m *discordgo.MessageReaction) {
|
||||||
if _, ok := messageRoleMap[m.MessageID]; ok {
|
if _, ok := messageRoleMap[m.MessageID]; ok {
|
||||||
if r, ok := messageRoleMap[m.MessageID][m.Emoji.Name]; ok {
|
if r, ok := messageRoleMap[m.MessageID][m.Emoji.APIName()]; ok {
|
||||||
var roleCmd func(guildID, userID, roleID string) (err error)
|
var roleCmd func(guildID, userID, roleID string) (err error)
|
||||||
if add {
|
if add {
|
||||||
roleCmd = s.GuildMemberRoleAdd
|
roleCmd = s.GuildMemberRoleAdd
|
||||||
|
|
Loading…
Reference in New Issue