Skip to content

Commit

Permalink
handle missing members properly
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Jan 18, 2024
1 parent 151022c commit 30f7bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/resources.epic-web-forum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async function getThreadData({
}
const { content, attachments, embeds, reactions, author } =
starterMessage
const member = await guild.members.fetch(author.id)
const member = await guild.members.fetch(author.id).catch(() => null)
const previewImageUrl =
attachments.first()?.url ?? embeds?.[0]?.image?.url ?? null
const authorDisplayName =
Expand Down

0 comments on commit 30f7bcb

Please sign in to comment.