From 6e92feaba23a4992e0ec4b529660921a6bcb492a Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sun, 8 Mar 2026 18:51:05 +0100 Subject: feat(config): leave gorm --- commands/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'commands/config.go') diff --git a/commands/config.go b/commands/config.go index f2dcf60..4535203 100644 --- a/commands/config.go +++ b/commands/config.go @@ -22,7 +22,7 @@ const ( ) func ConfigResponse(ctx context.Context, guildID uint64) *interaction.Response { - cfg := config.GetGuildConfig(ctx, guildID) + cfg := config.GetGuild(ctx, guildID) roles := "" l := len(cfg.XpRoles) - 1 slices.SortFunc(cfg.XpRoles, func(xp1, xp2 config.XpRole) int { @@ -30,9 +30,9 @@ func ConfigResponse(ctx context.Context, guildID uint64) *interaction.Response { }) for i, r := range cfg.XpRoles { if i == l { - roles += fmt.Sprintf("> Niveau %d - <@&%s>", exp.Level(r.XP), r.RoleID) + roles += fmt.Sprintf("> Niveau %d - <@&%d>", exp.Level(r.XP), r.RoleID) } else { - roles += fmt.Sprintf("> Niveau %d - <@&%s>\n", exp.Level(r.XP), r.RoleID) + roles += fmt.Sprintf("> Niveau %d - <@&%d>\n", exp.Level(r.XP), r.RoleID) } } if len(roles) == 0 { -- cgit v1.2.3