feat(discord.ts): adds a link to the pending approval discord notification (#436)

Co-authored-by: Corentin Normand <corentin.normand@swan.io>
This commit is contained in:
Corentin Normand
2025-04-04 19:41:54 +02:00
committed by GitHub
parent 4cf799d6eb
commit 14ee52e93e

View File

@@ -110,6 +110,8 @@ class DiscordAgent
): DiscordRichEmbed {
const { applicationUrl } = getSettings().main;
const appUrl =
applicationUrl || `http://localhost:${process.env.port || 5055}`;
let color = EmbedColors.DARK_PURPLE;
const fields: Field[] = [];
@@ -124,7 +126,7 @@ class DiscordAgent
switch (type) {
case Notification.MEDIA_PENDING:
color = EmbedColors.ORANGE;
status = 'Pending Approval';
status = `[Pending Approval](${appUrl}/requests)`;
break;
case Notification.MEDIA_APPROVED:
case Notification.MEDIA_AUTO_APPROVED: