diff options
| author | William Hergès <william@herges.fr> | 2025-09-26 18:30:57 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-09-26 18:30:57 +0200 |
| commit | b61a834b608df3d5e617912eefb28924ef3a46df (patch) | |
| tree | 00d2e373ba52b6091585c6a2c91e4b9f36c9af86 /config/channel.go | |
| parent | 80c147d5430bb3d8894231de3b6e960bcae43694 (diff) | |
build(gokord): bump to latest nightly
Diffstat (limited to 'config/channel.go')
| -rw-r--r-- | config/channel.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/config/channel.go b/config/channel.go index 723ec38..1ee6974 100644 --- a/config/channel.go +++ b/config/channel.go @@ -4,7 +4,8 @@ import ( "strings" "github.com/anhgelus/gokord/cmd" - discordgo "github.com/nyttikord/gokord" + "github.com/nyttikord/gokord/bot" + "github.com/nyttikord/gokord/event" "github.com/nyttikord/gokord/interaction" ) @@ -19,7 +20,7 @@ const ( DisChannelDelSet = "disabled_channel_del_set" ) -func HandleModifyFallbackChannel(s *discordgo.Session, i *discordgo.InteractionCreate, data *interaction.MessageComponentData, resp *cmd.ResponseBuilder) bool { +func HandleModifyFallbackChannel(s bot.Session, i *event.InteractionCreate, data *interaction.MessageComponentData, _ *cmd.ResponseBuilder) bool { cfg := GetGuildConfig(i.GuildID) var channelID string if len(data.Values) > 0 { @@ -34,7 +35,7 @@ func HandleModifyFallbackChannel(s *discordgo.Session, i *discordgo.InteractionC return true } -func HandleModifyDisChannel(s *discordgo.Session, i *discordgo.InteractionCreate, data *interaction.MessageComponentData, resp *cmd.ResponseBuilder) bool { +func HandleModifyDisChannel(s bot.Session, i *event.InteractionCreate, data *interaction.MessageComponentData, _ *cmd.ResponseBuilder) bool { cfg := GetGuildConfig(i.GuildID) cfg.DisabledChannels = strings.Join(data.Values, ";") err := cfg.Save() |
