Information
Info
The `info` command provides information about the bot and its features in a Discord server. It can be triggered using the prefixes `P`, `p`, or the slash command `/`.
Command Details
- Name: info
- Aliases: botinfo, bi
- Category: Information
- Description: Information about the bot and its features
- Usage:
P info
,p info
, or/info
- Examples:
P info
p info
/info
- 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 comprehensive information about the bot in an embed format.
- Shows a loading message while gathering information.
- Displays an embed with:
- A title with customizable emojis showing the bot's name and description.
- Developer information with a link to the support server.
- Dashboard link to "PEACHY" dashboard.
- Facebook page link to "PEACH AND GOMA".
- A footer with additional information.
- Includes interactive buttons:
- Support button linking to the support server.
- Invite button for adding the bot to other servers.
- Supports both prefix-based (
P
orp
) 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 bot information.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 information display.
- Configuration links for support, dashboard, and social media.
- Loading states for better user experience during command execution.
- Error handling for unexpected issues during execution.
Help
The `help` command displays a list of available bot commands or detailed information about a specific command. It can be triggered using the prefixes `P`, `p`, or the slash command `/`.
Ping
The `ping` command shows the bot's latency and connection status in a Discord server. It can be triggered using the prefixes `P`, `p`, or the slash command `/`.