Skip to content
Entity Info serverEmojis

$serverEmojis[] — Server Emojis List

$serverEmojis[] returns the complete list of custom emojis of a server, formatted to be displayed in Discord.

Syntax

$serverEmojis[guildID;separator]

The function requires exactly 2 arguments.

Parameters

Parameter Description
guildID Required. ID of the server (an invalid ID raises “Invalid guild ID.”).
separator Required. Text placed between emojis (can be empty).

Return Value

  • Type: string
  • A string containing all custom emojis of the server joined with the separator, each in the format <:name:id> (or <a:name:id> for animated emojis).

Examples

Display all emojis

$sendMessage[🎨 Emojis of the server: $serverEmojis[$guildID; ]]

Emoji catalog embed

$title[Emojis of $serverName]
$description[$serverEmojis[$guildID; ]]
$footer[Total: $emojiCount emojis]
$color[#F1C40F]

Check emoji count

$if[$emojiCount>=50]
  $sendMessage[🎉 This server has a rich collection of emojis! ($emojiCount)]
$else
  $sendMessage[The server has $emojiCount custom emojis.]
$endif

Server info with emojis

$title[$serverName]
$addField[👥 Members;$membersCount;yes]
$addField[🎨 Emojis;$emojiCount;yes]
$addField[🚀 Boosts;$serverBoostCount;yes]
$thumbnail[$serverIcon]
$color[#5865F2]

Notes

  • The list can be very long if the server has many emojis, and the resulting message may be too long to send.
  • Animated emojis are prefixed with <a: instead of <:.
  • To get only the number of emojis without the list, use $emojiCount[(guildID)]: with the ID of the same server it counts the same emojis; without argument it counts the emojis of the current server.
  • guildID must be a positive integer, otherwise Invalid guild ID. is raised; an empty separator joins the emojis without any text between them.

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.