Emote
Angry
The `angry` command allows users to express an angry emotion with a random angry emoji in a Discord server. It can be triggered using the prefixes `P`, `p`, or the slash command `/`.
Command Details
- Name: angry
- Aliases: None
- Category: Emotes
- Description: Show off your angriest expression with a random angry emoji.
- Usage:
P angry
,p angry
, or/angry
- Examples:
P angry
p angry
/angry
- 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 angry emoji from a predefined list (
emoji.emotes.angry
orglobalEmoji.emotes.angry
). - Displays an embed with:
- A title with customizable emojis.
- A description mentioning the user's display name expressing anger.
- The selected angry 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 angry 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.
Goma
The `goma` command allows users to earn coins and experience points by being "goma" in a Discord server. It can be triggered using the prefixes `P`, `p`, or the slash command `/`.
Cry
The `cry` command allows users to express a crying emotion with a random cry emoji in a Discord server. It can be triggered using the prefixes `P`, `p`, or the slash command `/`.