aboutsummaryrefslogtreecommitdiff
path: root/config/guild.go
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-09-27 17:34:38 +0200
committerWilliam Hergès <william@herges.fr>2025-09-27 17:34:38 +0200
commitcfdba5f417bb31aac564d13becc09874f17d075d (patch)
tree5f79f01bdab1fae108ca93be05e2c7fd8898bc08 /config/guild.go
parentdca669455f4746666fd3a1177a4db2eaa5320cb7 (diff)
build(gokord): bump to latest nightly
Diffstat (limited to 'config/guild.go')
-rw-r--r--config/guild.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/guild.go b/config/guild.go
index 10c64fd..e046ca7 100644
--- a/config/guild.go
+++ b/config/guild.go
@@ -38,15 +38,15 @@ func (cfg *GuildConfig) IsDisabled(s bot.Session, channelID string) bool {
ok = !strings.Contains(cfg.DisabledChannels, channelID)
c, err := s.ChannelAPI().State.Channel(channelID)
if err != nil {
- s.LogError(err, "unable to find channel %s in state", c)
+ s.Logger().Error("unable to find channel %s in state", "error", err, "channel", c)
c, err = s.ChannelAPI().Channel(channelID)
if err == nil {
err = s.ChannelAPI().State.ChannelAdd(c)
if err != nil {
- s.LogError(err, "unable to add channel %s to state", c)
+ s.Logger().Error("unable to add channel to state", "error", err, "channel", c)
}
} else {
- s.LogError(err, "unable to fetch channel %s", s)
+ s.Logger().Error("unable to fetch channel", "error", err, "channel", c)
return false
}
}