Emote
Sad
The `sad` command allows users to express a sad emotion with a random sad emoji in a Discord server. It can be triggered using the prefixes `P`, `p`, or the slash command `/`.
Command Details
- Name: sad
- Aliases: None
- Category: Emotes
- Description: Show off your saddest expression with a random sad emoji.
- Usage:
P sad
,p sad
, or/sad
- Examples:
P sad
p sad
/sad
- 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 sad emoji from a predefined list (
emoji.emotes.sad
orglobalEmoji.emotes.sad
). - Displays an embed with:
- A title with customizable emojis.
- A description mentioning the user's display name expressing sadness.
- The selected sad 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 sad 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.
Makeup
The `makeup` command allows users to show off a makeup-themed expression with a random makeup emoji in a Discord server. It can be triggered using the prefixes `P`, `p`, or the slash command `/`.
Scare
The `scare` command allows users to express a scared emotion with a random scared emoji in a Discord server. It can be triggered using the prefixes `P`, `p`, or the slash command `/`.