Skip to content

AllianceRequestReplyUpdate

python
class AllianceRequestReplyUpdate(BaseModel):
    type: Literal[GameUpdateType.AllianceRequestReply]
    request: AllianceRequestUpdate
    accepted: bool
java
public class AllianceRequestReplyUpdate {
    public int type;
    @NotNull public AllianceRequestUpdate request;
    public boolean accepted;
}

Encapsulates event data for when an alliance request receives a reply (either accepted or rejected).

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 request.requestorID attribute to see if the alliance request was received by your bot. Or you can use the update_is_for_me utility function.

Attributes

AttributeTypeDescription
typeGameUpdateType.AllianceRequestReplyThe type of game update, which is always AllianceRequestReply for this class.
requestAllianceRequestUpdateThe original alliance request that this reply is responding to.
acceptedboolWhether the alliance request was accepted (true) or rejected (false).