From e566489af26fc9133a3509251812910e03b90c8c Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Mon, 2 Mar 2026 12:38:58 +0100 Subject: build(gokord): update to latest nightly --- config/guild.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/guild.go') diff --git a/config/guild.go b/config/guild.go index 6cdc06b..98ef0cb 100644 --- a/config/guild.go +++ b/config/guild.go @@ -6,6 +6,7 @@ import ( "git.anhgelus.world/anhgelus/les-copaings-bot/common" "github.com/nyttikord/gokord/bot" + "github.com/nyttikord/gokord/channel" ) type Guild struct { @@ -59,7 +60,7 @@ func (cfg *Guild) IsDisabled(ctx context.Context, dg bot.Session, channelID stri c, err := dg.ChannelAPI().State.Channel(channelID) if err != nil { bot.Logger(ctx).Error("unable to find channel %s in state", "error", err, "channel", c) - c, err = dg.ChannelAPI().Channel(channelID).Do(ctx) + c, err = channel.Get(channelID).Do(ctx) if err != nil { bot.Logger(ctx).Error("unable to fetch channel", "error", err, "channel", c) return false -- cgit v1.2.3