From 9da4d0379b10da8b33563dcd280aa2a9586aa3fb Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Thu, 5 Mar 2026 19:03:28 +0100 Subject: perf(state): use avl for copaings --- commands/deploy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands') 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) -- cgit v1.2.3