diff options
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) |
