From 6849a6926a7607a291c350dbb3a112967fe09e1a Mon Sep 17 00:00:00 2001 From: Galen CC <95080649+galen8183@users.noreply.github.com> Date: Thu, 23 Jan 2025 01:17:10 -0500 Subject: [PATCH] reminders: fix target channel flag (#1831) Signed-off-by: Galen CC --- reminders/plugin_bot.go | 1 + 1 file changed, 1 insertion(+) diff --git a/reminders/plugin_bot.go b/reminders/plugin_bot.go index 8743500af9..a4ee9c4ca1 100644 --- a/reminders/plugin_bot.go +++ b/reminders/plugin_bot.go @@ -77,6 +77,7 @@ var cmds = []*commands.YAGCommand{ id := parsed.ChannelID if c := parsed.Switch("channel"); c.Value != nil { cs := c.Value.(*dstate.ChannelState) + id = cs.ID mention, _ := cs.Mention() hasPerms, err := bot.AdminOrPermMS(parsed.GuildData.GS.ID, cs.ID, parsed.GuildData.MS, discordgo.PermissionSendMessages|discordgo.PermissionViewChannel)