diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-03-02 12:38:58 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-03-02 12:38:58 +0100 |
| commit | e566489af26fc9133a3509251812910e03b90c8c (patch) | |
| tree | 186a7aac60c64e3466f7a84f6fcf87e811b2486d /commands/config.go | |
| parent | 443286aabc9d9e433625e0dd99e678754bbc74e5 (diff) | |
build(gokord): update to latest nightly
Diffstat (limited to 'commands/config.go')
| -rw-r--r-- | commands/config.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/config.go b/commands/config.go index d9b04ec..37aa953 100644 --- a/commands/config.go +++ b/commands/config.go @@ -121,7 +121,7 @@ func ConfigResponse(ctx context.Context, guildID string) *interaction.Response { } func ConfigCommand(ctx context.Context, dg bot.Session, i *interaction.ApplicationCommand) { - err := dg.InteractionAPI().Respond(i.Interaction, ConfigResponse(ctx, i.GuildID)).Do(ctx) + err := interaction.Respond(i.Interaction, ConfigResponse(ctx, i.GuildID)).Do(ctx) if err != nil { bot.Logger(ctx).Error("sending config", "error", err) } @@ -131,7 +131,7 @@ func ConfigMessageComponent(ctx context.Context, dg bot.Session, i *interaction. response := ConfigResponse(ctx, i.GuildID) response.Type = types.InteractionResponseUpdateMessage - err := dg.InteractionAPI().Respond(i.Interaction, response).Do(ctx) + err := interaction.Respond(i.Interaction, response).Do(ctx) if err != nil { bot.Logger(ctx).Error("sending config", "error", err) } @@ -141,7 +141,7 @@ func ConfigModal(ctx context.Context, dg bot.Session, i *interaction.ModalSubmit response := ConfigResponse(ctx, i.GuildID) response.Type = types.InteractionResponseUpdateMessage - err := dg.InteractionAPI().Respond(i.Interaction, response).Do(ctx) + err := interaction.Respond(i.Interaction, response).Do(ctx) if err != nil { bot.Logger(ctx).Error("sending config", "error", err) } |
