Emoji
Represents a custom emoji.
Example
{
"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
shortcode
Description: The name of the custom emoji.
Type: String
実装履歴: Added in 2.0.0
url
Description: A link to the custom emoji.
Type: String (URL)
実装履歴: Added in 2.0.0
static_url
Description: A link to a static copy of the custom emoji.
Type: String (URL)
実装履歴: Added in 2.0.0
visible_in_picker
Description: Whether this Emoji should be visible in the picker or unlisted.
Type: Boolean
実装履歴: Added in 2.0.0
Optional attributes
category
Description: Used for sorting custom emoji in the picker.
Type: String
実装履歴: Added in 3.0.0
See also
Status custom_emojis app/serializers/rest/custom_emoji_serializer.rb
最終更新 May 17, 2020 · このページを改善する
他の言語:
English