Emoji
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
JSON 表示法 |
{
// Union field content can be only one of the following:
"unicode": string,
"customEmoji": {
object (CustomEmoji )
}
// End of list of possible types for union field content .
} |
欄位 |
聯集欄位 content 。必要欄位。表情符號的內容。content 只能是下列其中一項: |
unicode |
string
(非必要) 以萬國碼字串表示的基本表情符號。
|
customEmoji |
object (CustomEmoji )
自訂表情符號。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eReactionEmoji resource represents an emoji used as a reaction to a message.\u003c/p\u003e\n"],["\u003cp\u003eEmoji content can be represented either by a unicode string for basic emojis or a CustomEmoji object for custom emojis.\u003c/p\u003e\n"],["\u003cp\u003eThe content field is required and determines the type of emoji being used.\u003c/p\u003e\n"]]],["The core content defines a message reaction emoji, which can be represented in JSON. The `content` field is mandatory and can be either a `unicode` string for basic emojis or a `customEmoji` object for custom emojis. `unicode` is optional and represents a standard emoji, while `customEmoji` is output-only and links to a separate definition of custom emojis. Only one of the content type is accepted.\n"],null,["# Emoji\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nAn emoji that is used as a reaction to a message.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `content` can be only one of the following: \"unicode\": string, \"customEmoji\": { object (/workspace/chat/api/reference/rest/v1/customEmojis#CustomEmoji) } // End of list of possible types for union field `content`. } ``` |\n\n| Fields ||\n|---------------|------------------------------------------------------------------------------------------------------------|\n| Union field `content`. Required. The content of the emoji. `content` can be only one of the following: ||\n| `unicode` | `string` Optional. A basic emoji represented by a unicode string. |\n| `customEmoji` | `object (`[CustomEmoji](/workspace/chat/api/reference/rest/v1/customEmojis#CustomEmoji)`)` A custom emoji. |"]]