Role sorting now preserves sorting if role not found
MODIFY
discordutil/users.go
discordutil/users.go
@@ -114,11 +114,11 @@ func SortUserRoles(roles []string, guildRoles []*discordgo.Role) {
}
if secondRole == nil {
- return true
+ return false
}
if firstRole == nil {
- return false
+ return true
}
return firstRole.Position > secondRole.Position

Role sorting now preserves sorting if role not found