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 d483e71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/guilds/channels/ChannelManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d483e71

Please sign in to comment.