Skip to content

Commit

Permalink
reminders: fix target channel flag (#1831)
Browse files Browse the repository at this point in the history
Signed-off-by: Galen CC <galen8183@gmail.com>
  • Loading branch information
galen8183 authored Jan 23, 2025
1 parent 6a2c589 commit 6849a69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reminders/plugin_bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6849a69

Please sign in to comment.