diff options
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/config.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/config.go b/commands/config.go index 4535203..867aec1 100644 --- a/commands/config.go +++ b/commands/config.go @@ -25,7 +25,7 @@ func ConfigResponse(ctx context.Context, guildID uint64) *interaction.Response { cfg := config.GetGuild(ctx, guildID) roles := "" l := len(cfg.XpRoles) - 1 - slices.SortFunc(cfg.XpRoles, func(xp1, xp2 config.XpRole) int { + slices.SortFunc(cfg.XpRoles, func(xp1, xp2 *config.XpRole) int { return int(xp2.XP) - int(xp1.XP) }) for i, r := range cfg.XpRoles { |
