From 684dbde1d1ae2708d2dae623311326debf83c143 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 8 Oct 2025 22:43:38 -0700 Subject: feat(interactions): Remove age-verify and nsfw-apply slash commands --- packages/interactions/discord/embeds.ts | 91 --------------------------------- 1 file changed, 91 deletions(-) (limited to 'packages/interactions/discord/embeds.ts') diff --git a/packages/interactions/discord/embeds.ts b/packages/interactions/discord/embeds.ts index bbae714..96c82f9 100644 --- a/packages/interactions/discord/embeds.ts +++ b/packages/interactions/discord/embeds.ts @@ -179,94 +179,3 @@ export const createAppealEmbed = ( }, }; }; - -export const createNSFWApplicationEmbed = ( - applicationContent: string, - applicant: { username: string; id: string; avatar?: string }, - timestamp: number, - isDM: boolean = true, - discordJoinDate?: string, - serverJoinDate?: string, -): DiscordEmbed => { - const fields = [ - { - name: "Applicant", - value: `<@${applicant.id}>`, - inline: true, - }, - { - name: "Timestamp", - value: ``, - inline: true, - }, - ]; - - if (serverJoinDate) - fields.push({ - name: "Server Join Date", - value: ``, - inline: true, - }); - - if (discordJoinDate) - fields.push({ - name: "Discord Join Date", - value: ``, - inline: true, - }); - - return { - title: "🔞 NSFW Access Application", - description: applicationContent, - color: 0xff69b4, - fields, - thumbnail: applicant.avatar - ? { - url: `https://cdn.discordapp.com/avatars/${applicant.id}/${applicant.avatar}${applicant.avatar.startsWith("a_") ? ".gif" : ".png"}?size=256`, - } - : undefined, - footer: { - text: isDM - ? "Application submitted via DM" - : "Application submitted from server", - }, - }; -}; - -export const createAgeVerificationLogEmbed = ( - action: string, - targetUser: { username: string; id: string; avatar?: string }, - accessType: string, - reason: string, - moderator: { username: string; id: string; avatar?: string }, - timestamp: number, -): DiscordEmbed => { - return { - title: "🔞 Age Verification Log", - description: `**Action:** ${action}\n**Access Type:** ${accessType}\n**Reason:** ${reason}`, - color: 0x00ff00, - timestamp: new Date(timestamp).toISOString(), - fields: [ - { - name: "Target User", - value: `<@${targetUser.id}>`, - inline: true, - }, - { - name: "Moderator", - value: `<@${moderator.id}>`, - inline: true, - }, - { - name: "Timestamp", - value: ``, - inline: true, - }, - ], - thumbnail: targetUser.avatar - ? { - url: `https://cdn.discordapp.com/avatars/${targetUser.id}/${targetUser.avatar}${targetUser.avatar.startsWith("a_") ? ".gif" : ".png"}?size=256`, - } - : undefined, - }; -}; -- cgit v1.2.3