aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-03-05 19:03:28 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2026-03-05 19:03:28 +0100
commit9da4d0379b10da8b33563dcd280aa2a9586aa3fb (patch)
treec14a7573d7dded955b0ba69e74ef1316df949262 /commands
parente566489af26fc9133a3509251812910e03b90c8c (diff)
perf(state): use avl for copaings
Diffstat (limited to 'commands')
-rw-r--r--commands/deploy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/deploy.go b/commands/deploy.go
index e652d43..7b039f2 100644
--- a/commands/deploy.go
+++ b/commands/deploy.go
@@ -70,7 +70,7 @@ func init() {
func Deploy(ctx context.Context, dg bot.Session) error {
guildID := ""
if common.IsDebug(ctx) {
- guildID = dg.GuildAPI().State.Guilds()[0]
+ guildID = dg.GuildState().ListGuilds()[0]
bot.Logger(ctx).Debug("using guild as debug", "guild", guildID)
}
_, err := interaction.OverwriteCommands(dg.SessionState().Application().ID, guildID, commands).Do(ctx)