|
|
@ -8,7 +8,7 @@ import (
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
func GiveLevelRoles(s *discordgo.Session, discordID string, oldLevel, newLevel int) {
|
|
|
|
func GiveLevelRoles(s *discordgo.Session, discordID string, oldLevel, newLevel int) {
|
|
|
|
for i := oldLevel; i <= newLevel; i++ {
|
|
|
|
for i := oldLevel + 1; i <= newLevel; i++ {
|
|
|
|
s.GuildMemberRoleAdd(config.GuildID, discordID, rolesFromLevel[i-1])
|
|
|
|
s.GuildMemberRoleAdd(config.GuildID, discordID, rolesFromLevel[i-1])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|