From 4c4af73a02b734e4ef400902f745c8488d2ef7ec Mon Sep 17 00:00:00 2001 From: "Jared.K" <3268576+jaredkotoff@users.noreply.github.com> Date: Wed, 10 Apr 2024 12:46:52 -0700 Subject: [PATCH] Bold clip title without breaking link preview --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 85cd4a6..e43069e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -368,7 +368,7 @@ async function main(): Promise { method: options.method, url: options.url, data: { - content: `[${clipInfo.title}](${clipInfo.url})`, + content: `[**${clipInfo.title}**](${clipInfo.url})`, }, }; logger.log('debug', 'POST: 1 of 2 requests with options', initialMessage); @@ -410,7 +410,7 @@ async function main(): Promise { let playingStr = ''; // underscores, and asterisks on the next two lines are Discord markdown formatting if (gameInfo) playingStr = ` playing __${gameInfo.name}__`; - const string = `[${clipInfo.title}](${clipInfo.url})\n\n*${userInfo.display_name}* created a clip of *${broadcasterInfo.display_name}*${playingStr}`; + const string = `[**${clipInfo.title}**](${clipInfo.url})\n\n*${userInfo.display_name}* created a clip of *${broadcasterInfo.display_name}*${playingStr}`; return { content: string }; }