diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-03-08 18:51:05 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-03-08 18:51:05 +0100 |
| commit | 6e92feaba23a4992e0ec4b529660921a6bcb492a (patch) | |
| tree | 05024b52d4c8ede041facdc48ac65af5ba0259da /config/xp_reduce.go | |
| parent | 3bcf74c47d1597ba650dc5a55868f83f5f547ad7 (diff) | |
feat(config): leave gorm
Diffstat (limited to 'config/xp_reduce.go')
| -rw-r--r-- | config/xp_reduce.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/xp_reduce.go b/config/xp_reduce.go index 36e64ed..baa4586 100644 --- a/config/xp_reduce.go +++ b/config/xp_reduce.go @@ -16,7 +16,7 @@ const ( ) func HandleModifyPeriodicReduceCommand(ctx context.Context, dg bot.Session, i *interaction.MessageComponent) { - cfg := GetGuildConfig(ctx, i.GuildID) + cfg := GetGuild(ctx, i.GuildID) resp := interaction.NewModalResponse(). CustomID(TimeReduceSet). Title("Modifier la durée de l'expérience"). @@ -66,7 +66,7 @@ func HandleTimeReduceSet(ctx context.Context, dg bot.Session, i *interaction.Mod } return false } - cfg := GetGuildConfig(ctx, i.GuildID) + cfg := GetGuild(ctx, i.GuildID) cfg.DaysXPRemains = uint(days) err = cfg.Save(ctx) if err != nil { |
