aboutsummaryrefslogtreecommitdiff
path: root/config/guild.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-03-02 12:38:58 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2026-03-02 12:38:58 +0100
commite566489af26fc9133a3509251812910e03b90c8c (patch)
tree186a7aac60c64e3466f7a84f6fcf87e811b2486d /config/guild.go
parent443286aabc9d9e433625e0dd99e678754bbc74e5 (diff)
build(gokord): update to latest nightly
Diffstat (limited to 'config/guild.go')
-rw-r--r--config/guild.go3
1 files changed, 2 insertions, 1 deletions
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