EmojiUpdate
python
class EmojiUpdate(BaseModel):
type: Literal[GameUpdateType.Emoji]
emoji: EmojiMessagejava
public class EmojiUpdate {
public int type;
@NotNull public EmojiMessage emoji;
}Encapsulates event data for when a player sends an emoji to another player or all players.
The "parent" type is RelevantGameUpdate, which includes all game update types that are relevant to the bot's decision-making process in the ConquerHack event.
You can check whether this event is relevant to your bot by looking at the emoji.recipientID attribute to see if it is your bot or "AllPlayers". Or you can use the update_is_for_me utility function.
Attributes
| Attribute | Type | Description |
|---|---|---|
type | GameUpdateType.Emoji | The type of game update, which is always Emoji for this class. |
emoji | EmojiMessage | An object containing details about the received emoji message, including the sender, recipient, and the emoji itself. |
