diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-01-22 21:53:29 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-01-22 21:53:29 +0100 |
| commit | 3e65b4f6281ddc4039a27a62428db8a95ffc3677 (patch) | |
| tree | b1005f908be45aa47da48b604f3863ef23a3d7ea /config/xp_reduce.go | |
| parent | 8255a2e51454049f3ac1532f6e1125f528691c37 (diff) | |
refactor(): completely remove old gokord and finish to update everything to use contexts
Diffstat (limited to 'config/xp_reduce.go')
| -rw-r--r-- | config/xp_reduce.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/xp_reduce.go b/config/xp_reduce.go index f8f8d95..aa2c540 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(i.GuildID) + cfg := GetGuildConfig(ctx, i.GuildID) resp := interaction.NewModalResponse(). CustomID(TimeReduceSet). Title("Modifier la durée de l'expérience"). @@ -66,9 +66,9 @@ func HandleTimeReduceSet(ctx context.Context, dg bot.Session, i *interaction.Mod } return false } - cfg := GetGuildConfig(i.GuildID) + cfg := GetGuildConfig(ctx, i.GuildID) cfg.DaysXPRemains = uint(days) - err = cfg.Save() + err = cfg.Save(ctx) if err != nil { bot.Logger(ctx).Error("saving DaysXPRemains configuration", "error", err) return false |
