Skip to content

Commit 7abdb21

Browse files
committed
fix issue with /reddit update resetting role id
1 parent ee4163a commit 7abdb21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redditbot/discord.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ func (b *Bot) OnSubredditUpdate(data discord.SlashCommandInteractionData, event
301301
if formatType == "" {
302302
formatType = sub.FormatType
303303
}
304-
if roleID != 0 {
304+
if roleID == 0 {
305305
roleID = sub.RoleID
306306
}
307307
if proxy == "" {

0 commit comments

Comments
 (0)