aboutsummaryrefslogtreecommitdiff
path: root/config/channel.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-03-08 18:51:05 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2026-03-08 18:51:05 +0100
commit6e92feaba23a4992e0ec4b529660921a6bcb492a (patch)
tree05024b52d4c8ede041facdc48ac65af5ba0259da /config/channel.go
parent3bcf74c47d1597ba650dc5a55868f83f5f547ad7 (diff)
feat(config): leave gorm
Diffstat (limited to 'config/channel.go')
-rw-r--r--config/channel.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/channel.go b/config/channel.go
index 5cc88aa..a015aef 100644
--- a/config/channel.go
+++ b/config/channel.go
@@ -21,7 +21,7 @@ const (
)
func HandleModifyFallbackChannel(ctx context.Context, dg bot.Session, i *interaction.MessageComponent) bool {
- cfg := GetGuildConfig(ctx, i.GuildID)
+ cfg := GetGuild(ctx, i.GuildID)
var channelID uint64
if len(i.Data.Values) > 0 {
var err error
@@ -40,7 +40,7 @@ func HandleModifyFallbackChannel(ctx context.Context, dg bot.Session, i *interac
}
func HandleModifyDisChannel(ctx context.Context, dg bot.Session, i *interaction.MessageComponent) bool {
- cfg := GetGuildConfig(ctx, i.GuildID)
+ cfg := GetGuild(ctx, i.GuildID)
cfg.DisabledChannels = strings.Join(i.Data.Values, ";")
err := cfg.Save(ctx)
if err != nil {