Skip to content

RelevantGameUpdate

python
RelevantGameUpdate = Annotated[
    Union[
        DisplayChatMessageUpdate,
        AllianceRequestUpdate,
        AllianceRequestReplyUpdate,
        BrokeAllianceUpdate,
        AllianceExpiredUpdate,
        EmojiUpdate,
    ],
    Discriminator("type"),
]
java
// This parent type does not exist in Java, Object is used instead.
// Use instanceof checks to determine the specific type of game update.

A discriminated union type that groups all game update types that are relevant to the bot's decision-making process in the ConquerHack event.

Type Variants

INFO

Receiving a game update of any of these types does not necessarily mean that your bot is the recipient of that update.

For example, an alliance request update may be received when Player A sends an alliance request to Player B, and your bot is controlling Player C.

Check the documentation for each individual game update type for more details on when that update is received and how to determine the relevant players involved in that update.

Also refer to the update_is_for_me utility function to determine whether a given game update is relevant to your bot.

Type VariantDescription
DisplayChatMessageUpdateA Quick Chat message has been received.
AllianceRequestUpdateAn alliance request has been sent.
AllianceRequestReplyUpdateAn alliance request has received a reply.
BrokeAllianceUpdateAn alliance was broken.
AllianceExpiredUpdateAn alliance expired.
EmojiUpdateA player sent an emoji to another player or all players.