diff options
| author | Fuwn <[email protected]> | 2025-10-08 22:43:38 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-10-08 22:43:38 -0700 |
| commit | 684dbde1d1ae2708d2dae623311326debf83c143 (patch) | |
| tree | 7f8450db4640b8d37c66012dd19c9ff4bc25972f /packages/interactions/discord/embeds.ts | |
| parent | feat(gateway:listeners): Disable mediaModeration module (diff) | |
| download | umabotdiscord-684dbde1d1ae2708d2dae623311326debf83c143.tar.xz umabotdiscord-684dbde1d1ae2708d2dae623311326debf83c143.zip | |
feat(interactions): Remove age-verify and nsfw-apply slash commands
Diffstat (limited to 'packages/interactions/discord/embeds.ts')
| -rw-r--r-- | packages/interactions/discord/embeds.ts | 91 |
1 files changed, 0 insertions, 91 deletions
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: `<t:${Math.floor(timestamp / 1000)}:F>`, - inline: true, - }, - ]; - - if (serverJoinDate) - fields.push({ - name: "Server Join Date", - value: `<t:${Math.floor(new Date(serverJoinDate).getTime() / 1000)}:F>`, - inline: true, - }); - - if (discordJoinDate) - fields.push({ - name: "Discord Join Date", - value: `<t:${Math.floor(new Date(discordJoinDate).getTime() / 1000)}:F>`, - 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: `<t:${Math.floor(timestamp / 1000)}:F>`, - inline: true, - }, - ], - thumbnail: targetUser.avatar - ? { - url: `https://cdn.discordapp.com/avatars/${targetUser.id}/${targetUser.avatar}${targetUser.avatar.startsWith("a_") ? ".gif" : ".png"}?size=256`, - } - : undefined, - }; -}; |