From e566489af26fc9133a3509251812910e03b90c8c Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Mon, 2 Mar 2026 12:38:58 +0100 Subject: build(gokord): update to latest nightly --- commands/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'commands/config.go') 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) } -- cgit v1.2.3