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 --- config/guild.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/guild.go') diff --git a/config/guild.go b/config/guild.go index 98ef0cb..6c46a1a 100644 --- a/config/guild.go +++ b/config/guild.go @@ -57,7 +57,7 @@ func (cfg *Guild) IsDisabled(ctx context.Context, dg bot.Session, channelID stri ok := true for channelID != "" && ok { ok = !strings.Contains(cfg.DisabledChannels, channelID) - c, err := dg.ChannelAPI().State.Channel(channelID) + c, err := dg.ChannelState().GetChannel(channelID) if err != nil { bot.Logger(ctx).Error("unable to find channel %s in state", "error", err, "channel", c) c, err = channel.Get(channelID).Do(ctx) -- cgit v1.2.3