$imageLoadEmoji
Loads an emoji (either a standard Unicode emoji or a custom Discord emoji) for use in image drawing. This allows you to easily add emojis to your images.
Usage
$imageLoadEmoji[id;Emoji]
Parameters:
id
: A unique identifier for the loaded emoji. You'll use this ID in the$imageDraw
function to reference the emoji. Choose something descriptive and easy to remember.Emoji
: The emoji you want to load. This can be either:- A standard Unicode emoji (e.g.,
:smile:
,:heart:
) - A custom Discord emoji in the format
<:emoji_name:emoji_id>
(e.g.,<:custom_emoji:123456789012345678>
). You can get the custom emoji format by typing the emoji in Discord and escaping it with a backslash (\
), like this:\:custom_emoji:
- A standard Unicode emoji (e.g.,
Examples
Example 1: Loading and drawing a standard Unicode emoji
This example creates a 300x300 image, loads the :cheese:
emoji, fills a gray rectangle, and then draws the cheese emoji on top.
Example 2: Loading and drawing both a standard and a custom emoji
This example creates a 600x600 image, loads both a custom Discord emoji (using its ID) and the :cheese:
emoji, and draws them both.