Skip to content

EmojiUpdate

python
class EmojiUpdate(BaseModel):
    type: Literal[GameUpdateType.Emoji]
    emoji: EmojiMessage
java
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

AttributeTypeDescription
typeGameUpdateType.EmojiThe type of game update, which is always Emoji for this class.
emojiEmojiMessageAn object containing details about the received emoji message, including the sender, recipient, and the emoji itself.