Skip to content

Commit

Permalink
fix: 🐛 Remove softlock if original message was deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
vidhanio committed Jan 26, 2022
1 parent 9a717d8 commit 1a8ed0c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ func (wb *WordleBot) handleWordleStart(s *discordgo.Session, i *discordgo.Intera
Msg("Failed to create response")

errorRespond(s, i, err)

return
}
}

Expand Down Expand Up @@ -153,8 +151,6 @@ func (wb *WordleBot) handleWordleCancel(s *discordgo.Session, i *discordgo.Inter
Msg("Failed to delete interaction")

errorRespond(s, i, err)

return
}

delete(wb.wordles[i.GuildID], i.Member.User.ID)
Expand All @@ -177,8 +173,6 @@ func (wb *WordleBot) handleWordleShow(s *discordgo.Session, i *discordgo.Interac
Msg("Failed to delete response")

errorRespond(s, i, err)

return
}

wg.setInteraction(i)
Expand All @@ -189,7 +183,5 @@ func (wb *WordleBot) handleWordleShow(s *discordgo.Session, i *discordgo.Interac
Msg("Failed to create response")

errorRespond(s, i, err)

return
}
}

0 comments on commit 1a8ed0c

Please sign in to comment.