Get started with Peachy now 🍑
PEACHYPEACHY
Information

Privacy Policy

The `privacy` command displays the bot's privacy policy in a Discord server. It can be triggered using the prefixes `P`, `p`, or the slash command `/`.

Command Details

  • Name: privacy
  • Aliases: policy, privacypolicy
  • Category: Information
  • Description: Displays the bot's privacy policy
  • Usage: P privacy, p privacy, or /privacy
  • Examples:
    • P privacy
    • p privacy
    • /privacy
  • Cooldown: 3 seconds
  • Arguments: None
  • Slash Command: Enabled
  • Permissions:
    • Bot: SendMessages, ViewChannel, EmbedLinks
    • User: None
  • Player Requirements: None (no voice, DJ, or active player required)

Functionality

  • Displays the bot's comprehensive privacy policy in an organized embed format.
  • Shows an embed with:
    • A title and description explaining the privacy policy overview.
    • Dynamic fields containing different privacy policy sections.
    • Each policy section includes detailed information about data handling.
    • A footer with the bot's name and avatar.
    • Timestamp of when the command was executed.
  • Includes interactive buttons:
    • Support button linking to the support server.
    • Invite button for adding the bot to other servers.
  • Supports both prefix-based (P or p) and slash command (/) inputs.
  • Handles errors with appropriate error messages.

Code Overview

The command is built using a Command class structure and handles both message-based and interaction-based (slash command) inputs. It uses:

  • client.embed() to create a formatted embed with privacy policy information.
  • Dynamic field addition using forEach() to iterate through policy sections.
  • client.utils.linkButton to create interactive buttons for support and invite links.
  • client.utils.createButtonRow to organize buttons in a row layout.
  • Language localization for messages and policy content (privacyMessages.policies).
  • Configuration links for support and invite functionality.
  • Timestamp and bot information display for transparency.
  • Error handling for unexpected issues during execution.