diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-03-05 19:03:28 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-03-05 19:03:28 +0100 |
| commit | 9da4d0379b10da8b33563dcd280aa2a9586aa3fb (patch) | |
| tree | c14a7573d7dded955b0ba69e74ef1316df949262 /config/guild.go | |
| parent | e566489af26fc9133a3509251812910e03b90c8c (diff) | |
perf(state): use avl for copaings
Diffstat (limited to 'config/guild.go')
| -rw-r--r-- | config/guild.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
