2020-01-01 22:37:59 +01:00
|
|
|
---
|
|
|
|
title: Emoji
|
|
|
|
description: Represents a custom emoji.
|
|
|
|
menu:
|
|
|
|
docs:
|
|
|
|
parent: entities
|
|
|
|
---
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
{
|
|
|
|
"shortcode": "blobaww",
|
|
|
|
"url": "https://files.mastodon.social/custom_emojis/images/000/011/739/original/blobaww.png",
|
|
|
|
"static_url": "https://files.mastodon.social/custom_emojis/images/000/011/739/static/blobaww.png",
|
|
|
|
"visible_in_picker": true,
|
|
|
|
"category": "Blobs"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Required attributes
|
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
### `shortcode` {#shortcode}
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
**Description:** The name of the custom emoji.\
|
|
|
|
**Type:** String\
|
2020-01-01 22:37:59 +01:00
|
|
|
**Version history:** Added in 2.0.0
|
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
### `url` {#url}
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
**Description:** A link to the custom emoji.\
|
|
|
|
**Type:** String \(URL\)\
|
2020-01-01 22:37:59 +01:00
|
|
|
**Version history:** Added in 2.0.0
|
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
### `static_url` {#static_url}
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
**Description:** A link to a static copy of the custom emoji.\
|
|
|
|
**Type:** String \(URL\)\
|
2020-01-01 22:37:59 +01:00
|
|
|
**Version history:** Added in 2.0.0
|
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
### `visible_in_picker` {#visible_in_picker}
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
**Description:** Whether this Emoji should be visible in the picker or unlisted.\
|
|
|
|
**Type:** Boolean\
|
2020-01-01 22:37:59 +01:00
|
|
|
**Version history:** Added in 2.0.0
|
|
|
|
|
|
|
|
## Optional attributes
|
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
### `category` {#category}
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
**Description:** Used for sorting custom emoji in the picker.\
|
|
|
|
**Type:** String\
|
2020-01-01 22:37:59 +01:00
|
|
|
**Version history:** Added in 3.0.0
|
|
|
|
|
|
|
|
## See also
|
|
|
|
|
2020-08-10 23:01:50 +02:00
|
|
|
* [Status\#emojis]({{< relref "status.md#emojis" >}})
|
2020-01-01 22:37:59 +01:00
|
|
|
|
|
|
|
{{< page-ref page="status.md" >}}
|
|
|
|
|
|
|
|
{{< page-ref page="methods/instance/custom_emojis.md" >}}
|
|
|
|
|
|
|
|
{{< caption-link url="https://github.com/tootsuite/mastodon/blob/master/app/serializers/rest/custom_emoji_serializer.rb" caption="app/serializers/rest/custom\_emoji\_serializer.rb" >}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|