From 30f7bcb0c11dbc975fb9043921a3365122f18a19 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Thu, 18 Jan 2024 13:20:12 -0700 Subject: [PATCH] handle missing members properly Closes https://github.com/epicweb-dev/kcdshop/issues/188 --- app/routes/resources.epic-web-forum.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/resources.epic-web-forum.ts b/app/routes/resources.epic-web-forum.ts index e683ce4..0c8ab2d 100644 --- a/app/routes/resources.epic-web-forum.ts +++ b/app/routes/resources.epic-web-forum.ts @@ -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 =