Immutable emoji value object with object identity.
These objects are singletons - the same emoji name always returns
the same frozen object instance, enabling === comparison.
// Object identity comparison worksif (event.emoji === emoji.thumbs_up) { console.log("User gave a thumbs up!");}// Works in template strings via toString()await thread.post(`${emoji.thumbs_up} Great job!`);
Properties
string
required
The normalized emoji name (e.g., “thumbs_up”)
Methods
toJSON()
toJSON(): string
Returns the placeholder string (for JSON.stringify)
Returns
string
toString()
toString(): string
Returns the placeholder string for message formatting