aboutsummaryrefslogtreecommitdiff
path: root/commands/top.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/top.go')
-rw-r--r--commands/top.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/top.go b/commands/top.go
index 7b57d8f..aa0c288 100644
--- a/commands/top.go
+++ b/commands/top.go
@@ -50,7 +50,7 @@ func Top(ctx context.Context, dg bot.Session, i *interaction.ApplicationCommand)
resp.AddEmbed(embeds[1]).
AddEmbed(embeds[2])
}
- 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("sending response top", "error", err)
}