aboutsummaryrefslogtreecommitdiff
path: root/commands/reset.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-03-02 12:38:58 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2026-03-02 12:38:58 +0100
commite566489af26fc9133a3509251812910e03b90c8c (patch)
tree186a7aac60c64e3466f7a84f6fcf87e811b2486d /commands/reset.go
parent443286aabc9d9e433625e0dd99e678754bbc74e5 (diff)
build(gokord): update to latest nightly
Diffstat (limited to 'commands/reset.go')
-rw-r--r--commands/reset.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/reset.go b/commands/reset.go
index 85f8f0d..f9c81d2 100644
--- a/commands/reset.go
+++ b/commands/reset.go
@@ -14,7 +14,7 @@ func Reset(ctx context.Context, dg bot.Session, i *interaction.ApplicationComman
//TODO: delete everything from cache
common.GetDB(ctx).Where("guild_id = ?", i.GuildID).Delete(&copaings)
resp := interaction.NewMessageResponse().IsEphemeral().Message("L'XP a été reset.").Response()
- err := dg.InteractionAPI().Respond(i.Interaction, resp).Do(ctx)
+ err := interaction.Respond(i.Interaction, resp).Do(ctx)
if err != nil {
bot.Logger(ctx).Error("sending reset success", "error", err)
}
@@ -23,7 +23,7 @@ func Reset(ctx context.Context, dg bot.Session, i *interaction.ApplicationComman
func ResetUser(ctx context.Context, dg bot.Session, i *interaction.ApplicationCommand) {
resp := interaction.NewMessageResponse().IsEphemeral()
defer func() {
- err := dg.InteractionAPI().Respond(i.Interaction, resp.Response()).Do(ctx)
+ err := interaction.Respond(i.Interaction, resp.Response()).Do(ctx)
if err != nil {
bot.Logger(ctx).Error("replying to interaction", "error", err)
}