Skip to content

Commit

Permalink
fix: Fallback for headline
Browse files Browse the repository at this point in the history
  • Loading branch information
fearandesire committed May 13, 2024
1 parent b8957ea commit 7fca16e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/guilds/channels/ChannelManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ 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.replace(/-/, '|') || ''
const matchEmbed = new EmbedBuilder()
.setColor(embedClr)
// Inserting for the playoffs, but will need to be reviewed for regular season
Expand Down

0 comments on commit 7fca16e

Please sign in to comment.