Skip to content

Commit

Permalink
if parent is nil, continue
Browse files Browse the repository at this point in the history
  • Loading branch information
IoIxD committed Jul 23, 2024
1 parent 51f4f12 commit 244bc65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,9 @@ func (s *server) getForum(w http.ResponseWriter, r *http.Request) {
s.displayErr(w, http.StatusInternalServerError,
fmt.Errorf("fetching parent channel's type: %w", err))
}
if parent == nil {
continue
}
if parent.Type != discord.GuildForum {
continue
}
Expand Down

0 comments on commit 244bc65

Please sign in to comment.