From d483e71eca15137a12ae610dc8b912bbd88395f1 Mon Sep 17 00:00:00 2001 From: fearandesire <63979371+fearandesire@users.noreply.github.com> Date: Mon, 13 May 2024 19:05:12 -0400 Subject: [PATCH] fix: Fallback for headline --- src/utils/guilds/channels/ChannelManager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/guilds/channels/ChannelManager.ts b/src/utils/guilds/channels/ChannelManager.ts index b94c3cf2..a5f482c5 100644 --- a/src/utils/guilds/channels/ChannelManager.ts +++ b/src/utils/guilds/channels/ChannelManager.ts @@ -231,7 +231,8 @@ export default class ChannelManager { const teamEmoji = (await findEmoji(args.favored)) ?? '' const matchVersus = `${args.awayTeamShortName} @ ${args.homeTeamShortName}` const parseHeaderEmoji = SportEmojis[args.sport] - const sanitizedHeader = args.header.replace(/-/, '|') + const sanitizedHeader = + args?.header ?? args?.header?.replace(/-/, '|') ?? '' const matchEmbed = new EmbedBuilder() .setColor(embedClr) // Inserting for the playoffs, but will need to be reviewed for regular season