Skip to content

Commit 4c4af73

Browse files
committed
Bold clip title without breaking link preview
1 parent 0e3a1d1 commit 4c4af73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ async function main(): Promise<void> {
368368
method: options.method,
369369
url: options.url,
370370
data: {
371-
content: `[${clipInfo.title}](${clipInfo.url})`,
371+
content: `[**${clipInfo.title}**](${clipInfo.url})`,
372372
},
373373
};
374374
logger.log('debug', 'POST: 1 of 2 requests with options', initialMessage);
@@ -410,7 +410,7 @@ async function main(): Promise<void> {
410410
let playingStr = '';
411411
// underscores, and asterisks on the next two lines are Discord markdown formatting
412412
if (gameInfo) playingStr = ` playing __${gameInfo.name}__`;
413-
const string = `[${clipInfo.title}](${clipInfo.url})\n\n*${userInfo.display_name}* created a clip of *${broadcasterInfo.display_name}*${playingStr}`;
413+
const string = `[**${clipInfo.title}**](${clipInfo.url})\n\n*${userInfo.display_name}* created a clip of *${broadcasterInfo.display_name}*${playingStr}`;
414414
return { content: string };
415415
}
416416

0 commit comments

Comments
 (0)