From fceda4e9330984d9b62465e7d00c27c6ac36e8b3 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 1 Oct 2025 20:37:00 -0700 Subject: feat(interactions): Add nsfw-apply command --- packages/interactions/discord/embeds.ts | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'packages/interactions/discord/embeds.ts') diff --git a/packages/interactions/discord/embeds.ts b/packages/interactions/discord/embeds.ts index 3f7c344..16e485e 100644 --- a/packages/interactions/discord/embeds.ts +++ b/packages/interactions/discord/embeds.ts @@ -179,3 +179,38 @@ export const createAppealEmbed = ( }, }; }; + +export const createNSFWApplicationEmbed = ( + applicationContent: string, + applicant: { username: string; id: string; avatar?: string }, + timestamp: number, + isDM: boolean = true, +): DiscordEmbed => { + return { + title: "🔞 NSFW Access Application", + description: applicationContent, + color: 0xff69b4, + fields: [ + { + name: "Applicant", + value: `${applicant.username} (${applicant.id})`, + inline: true, + }, + { + name: "Timestamp", + value: ``, + inline: true, + }, + ], + thumbnail: applicant.avatar + ? { + url: `https://cdn.discordapp.com/avatars/${applicant.id}/${applicant.avatar}.png?size=256`, + } + : undefined, + footer: { + text: isDM + ? "Application submitted via DM" + : "Application submitted from server", + }, + }; +}; -- cgit v1.2.3