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