AllianceRequestReplyUpdate
python
class AllianceRequestReplyUpdate(BaseModel):
type: Literal[GameUpdateType.AllianceRequestReply]
request: AllianceRequestUpdate
accepted: booljava
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
| Attribute | Type | Description |
|---|---|---|
type | GameUpdateType.AllianceRequestReply | The type of game update, which is always AllianceRequestReply for this class. |
request | AllianceRequestUpdate | The original alliance request that this reply is responding to. |
accepted | bool | Whether the alliance request was accepted (true) or rejected (false). |
