|
|
@ -109,6 +109,9 @@ func checkPrestigeReact(s *discordgo.Session, m *discordgo.MessageReactionAdd) {
|
|
|
|
if prestigeList[m.MessageID] != m.UserID {
|
|
|
|
if prestigeList[m.MessageID] != m.UserID {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if m.Emoji.Name != emojiCheck {
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
xp := getXP(s, m.UserID)
|
|
|
|
xp := getXP(s, m.UserID)
|
|
|
|
newPrestigeLevel := xp/prestigeRequirement + 1
|
|
|
|
newPrestigeLevel := xp/prestigeRequirement + 1
|
|
|
|
go cleanUpRole(s, m.UserID)
|
|
|
|
go cleanUpRole(s, m.UserID)
|
|
|
|