diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-03-09 18:47:40 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-03-09 18:47:40 +0100 |
| commit | 9c3f1ea5ffe9ad70caf306faff7a3e3948cef6ab (patch) | |
| tree | d7931c65a40a7bf22764473c0dd330f83a4bc071 /commands | |
| parent | 6e92feaba23a4992e0ec4b529660921a6bcb492a (diff) | |
feat(config): preload role reactfeat/leave-gorm
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 { |
