Math & Text
emojisFromMessage
$emojisFromMessage
$emojisFromMessage reads a text and returns every emoji it contains, in the order they appear. Unicode emojis (flags, skin tones and combined emojis included) and custom emojis written <:name:id> or <a:name:id> are both found.
To read the custom emojis of a message from its ID, use $messageEmojis[].
Syntax
$emojisFromMessage[text;(separator)]
Parameters
| Parameter | Description |
|---|---|
text |
Required. The text to read, for example $message. |
separator |
Optional. Text placed between two emojis, , by default. |
Return Value
- The emojis, joined by the separator. An empty text when there is none.
Examples
$emojisFromMessage[Hi 👍 <:wave:123456789012345678> and 🇫🇷!]
Result: 👍, <:wave:123456789012345678>, 🇫🇷
Emojis of your message: $emojisFromMessage[$message; ]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.