Skip to content

AllianceRequestUpdate

python
class AllianceRequestUpdate(BaseModel):
    type: Literal[GameUpdateType.AllianceRequest]
    requestorID: PlayerSmallID
    recipientID: PlayerSmallID
    createdAt: Tick
java
public class AllianceRequestUpdate {
    public int type;
    @NotNull public PlayerSmallID requestorID;
    @NotNull public PlayerSmallID recipientID;
    @NotNull public Tick createdAt;
}

Encapsulates event data for when an alliance request is sent from one player to another.

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 the recipientID attribute to see if the request is intended for your bot. Or you can use the update_is_for_me utility function.

Attributes

AttributeTypeDescription
typeGameUpdateType.AllianceRequestThe type of game update, which is always AllianceRequest for this class.
requestorIDPlayerSmallIDThe small ID of the player who sent the alliance request.
recipientIDPlayerSmallIDThe small ID of the player who is the intended recipient of the alliance request.
createdAtTickThe game tick at which the alliance request was created.