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

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

### Emoji catalog embed

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

### Check emoji count

```bdfd
$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

```bdfd
$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.
