diff --git a/reminders/plugin_bot.go b/reminders/plugin_bot.go index 8743500af..a4ee9c4ca 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)