Send webhook link with required segment

This commit is contained in:
Ajay Ramachandran
2021-10-18 20:02:17 -04:00
parent 201f6cb900
commit a42e933240
2 changed files with 2 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ async function sendWebhooks(apiVideoInfo: APIVideoInfo, userID: string, videoID:
axios.post(config.discordFirstTimeSubmissionsWebhookURL, {
"embeds": [{
"title": data?.title,
"url": `https://www.youtube.com/watch?v=${videoID}&t=${(parseInt(startTime.toFixed(0)) - 2)}`,
"url": `https://www.youtube.com/watch?v=${videoID}&t=${(parseInt(startTime.toFixed(0)) - 2)}#requiredSegment=${UUID}`,
"description": `Submission ID: ${UUID}\
\n\nTimestamp: \
${getFormattedTime(startTime)} to ${getFormattedTime(endTime)}\