aboutsummaryrefslogtreecommitdiff
path: root/commands/config.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-03-08 18:51:05 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2026-03-08 18:51:05 +0100
commit6e92feaba23a4992e0ec4b529660921a6bcb492a (patch)
tree05024b52d4c8ede041facdc48ac65af5ba0259da /commands/config.go
parent3bcf74c47d1597ba650dc5a55868f83f5f547ad7 (diff)
feat(config): leave gorm
Diffstat (limited to 'commands/config.go')
-rw-r--r--commands/config.go6
1 files changed, 3 insertions, 3 deletions
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 {