$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:

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.

Member04/23/2025
!!exec $imageCreate[300;300]
$imageLoadEmoji[mycheese;:cheese:]
$imageBorderRad[100]
$imageFill[gray;50;50;200;200]
$imageDraw[mycheese;100;100;100;100]
$image[$imageOutput]

Custom Command Bot 04/23/2025

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.

Member04/23/2025
!!exec $imageCreate[600;600]
$imageLoadEmoji[seed;<:seed:1149808771888062605>]
$imageLoadEmoji[cheese;:cheese:]
$imageBorderRad[100]
$imageFill[gray;50;200;200;200]
$imageFill[gray;350;200;200;200]
$imageDraw[cheese;100;250;100;100]
$imageDraw[seed;400;250;100;100]
$image[$imageOutput]

Custom Command Bot 04/23/2025