Skip to content

Commit

Permalink
Fix embed generation failing with double header (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
dericksonmark authored Nov 11, 2023
1 parent f1d5d61 commit dbd0855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mentions/SingleMention.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' );

Expand Down

0 comments on commit dbd0855

Please sign in to comment.