@ -32,6 +32,10 @@ func AssignRoles(dg *discordgo.Session, guildID string, userID string, rank Rank
util.ReportError(dg, err)
return
}
//FIXME: Hack. To prevent someone who isn't part of the server yet to be assigned a role.
if len(member.Roles) == 0 {
OuterLoop:
for i := 0; i <= int(rank); i++ {
if i >= len(Roles) {