Emote
Dance
The `dance` command allows users to show off their dance moves with a random dance emoji in a Discord server. It can be triggered using the prefixes `P`, `p`, or the slash command `/`.
Command Details
- Name: dance
- Aliases: None
- Category: Emotes
- Description: Shows off some dance moves with a random dance emoji.
- Usage:
P dance
,p dance
, or/dance
- Examples:
P dance
p dance
/dance
- 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
- Selects a random dance emoji from a predefined list (
emoji.emotes.dances
orglobalEmoji.emotes.dances
). - Displays an embed with:
- A title with customizable emojis.
- A description mentioning the user's display name showing off dance moves.
- The selected dance emoji as an image.
- A footer with the requester's display name and avatar.
- Supports both prefix-based (
P
orp
) and slash command (/
) inputs. - Handles errors (e.g., issues with emoji retrieval or message sending) with a custom error message.
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.utils.getRandomElement
to select a random dance emoji.client.embed()
to create a formatted embed with dynamic emojis and images.client.utils.emojiToImage
to convert the selected emoji into an image for the embed.- Language localization for messages and emojis.
- Error handling for unexpected issues during execution.
Cute
The `cute` command allows users to express a cute emotion with a random cute emoji in a Discord server. It can be triggered using the prefixes `P`, `p`, or the slash command `/`.
Happy
The `happy` command allows users to express a happy emotion with a random happy emoji in a Discord server. It can be triggered using the prefixes `P`, `p`, or the slash command `/`.