diff options
Diffstat (limited to 'packages/interactions/discord')
| -rw-r--r-- | packages/interactions/discord/commands/index.ts | 73 | ||||
| -rw-r--r-- | packages/interactions/discord/embeds.ts | 91 |
2 files changed, 0 insertions, 164 deletions
diff --git a/packages/interactions/discord/commands/index.ts b/packages/interactions/discord/commands/index.ts index c22d3aa..46665a4 100644 --- a/packages/interactions/discord/commands/index.ts +++ b/packages/interactions/discord/commands/index.ts @@ -96,23 +96,6 @@ export const APPEAL_COMMAND: DiscordCommand = { ], }; -export const NSFW_APPLY_COMMAND: DiscordCommand = { - name: "nsfw-apply", - description: "Submit an NSFW access application to the moderators", - contexts: [ - DISCORD_INTERACTION_CONTEXTS.GUILD, - DISCORD_INTERACTION_CONTEXTS.BOT_DM, - ], - options: [ - { - type: DISCORD_APPLICATION_COMMAND_OPTION_TYPES.STRING, - name: "message", - description: "Your NSFW access application message", - required: true, - }, - ], -}; - export const COLOURS_COMMAND: DiscordCommand = { name: "colours", description: "Show the distribution of colour roles in the server", @@ -151,59 +134,3 @@ export const ROLEPLAY_VERIFY_COMMAND: DiscordCommand = { }, ], }; - -export const AGE_VERIFY_COMMAND: DiscordCommand = { - name: "age-verify", - description: "Manage the verified age role (Staff only)", - options: [ - { - type: DISCORD_APPLICATION_COMMAND_OPTION_TYPES.STRING, - name: "action", - description: "Action to perform on the role", - required: true, - choices: [ - { - name: "Add Role", - value: "add", - }, - { - name: "Remove Role", - value: "remove", - }, - { - name: "Toggle Role", - value: "toggle", - }, - ], - }, - { - type: DISCORD_APPLICATION_COMMAND_OPTION_TYPES.USER, - name: "user", - description: "User to perform the action on", - required: true, - }, - { - type: DISCORD_APPLICATION_COMMAND_OPTION_TYPES.STRING, - name: "access", - description: "Type of access to grant", - required: true, - choices: [ - { - name: "Art & Media", - value: "art_media", - }, - { - name: "Roleplay NSFW", - value: "roleplay_nsfw", - }, - ], - }, - { - type: DISCORD_APPLICATION_COMMAND_OPTION_TYPES.STRING, - name: "reason", - description: - "Reason for verification (how and why you verified the user)", - required: true, - }, - ], -}; 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, - }; -}; |