From dbd085548f5461515071eac320e1a2f70fe518da Mon Sep 17 00:00:00 2001 From: dericksonmark <68699877+dericksonmark@users.noreply.github.com> Date: Fri, 10 Nov 2023 23:00:33 -0500 Subject: [PATCH] Fix embed generation failing with double header (#287) --- src/mentions/SingleMention.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mentions/SingleMention.ts b/src/mentions/SingleMention.ts index c68026b9..592f7380 100644 --- a/src/mentions/SingleMention.ts +++ b/src/mentions/SingleMention.ts @@ -88,7 +88,7 @@ export class SingleMention extends Mention { const embed = new EmbedBuilder(); embed.setTitle( this.ensureLength( `[${ ticketResult.key }] ${ escapeMarkdown( ticketResult.fields.summary ) }` ) ) - .setDescription( description.substring( 0, 2048 ) ) + .setDescription( description.substring( 0, 2048 ) || null ) .setURL( `https://bugs.mojang.com/browse/${ ticketResult.key }` ) .setColor( 'Red' );