emoji_list
Get all custom emoji at once. Clients call this after connecting to build an emoji picker, and again to pick up changes, since the server doesn’t broadcast them.
Request
Section titled “Request”{ "cmd": "emoji_list"}No fields besides cmd.
Response
Section titled “Response”{ "cmd": "emoji_list", "emojis": { "0": { "name": "wave", "fileName": "0.png" }, "4": { "name": "party_parrot", "fileName": "4.gif" } }}emojis is an object, not an array. Each key is an emoji ID and each value has:
name: the emoji’s name.fileName: load the image fromGET /emojis/{fileName}.
A server with no custom emoji returns "emojis": {}.
Permissions
Section titled “Permissions”Any joined member can call it.
Errors
Section titled “Errors”val |
When |
|---|---|
Custom asset storage is unavailable |
The emoji index file can’t be read. |
