party¶
Features related to party invite and communication.
-
class
dota2.features.party.Party¶ Bases:
object-
EVENT_PARTY_INVITE= 'party_invite'¶ When a party invite is receieved
Parameters: message (proto message) – CSODOTAPartyInvite
-
EVENT_NEW_PARTY= 'new_party'¶ Entered a party, either by inviting someone or accepting an invite
Parameters: message (proto message) – CSODOTAParty
-
EVENT_PARTY_CHANGED= 'party_changed'¶ Anything changes to the party state, leaving/entering/invites etc
Parameters: message (proto message) –
-
EVENT_PARTY_REMOVED= 'party_removed'¶ Left party, either left, kicked or disbanded
Parameters: message (proto message) –
-
EVENT_INVITATION_CREATED= 'invitation_created'¶ After inviting another user
Parameters: message (proto message) – CMsgInvitationCreated
-
party= None¶
-
respond_to_party_invite(party_id, accept=False)¶ Respond to a party invite.
Parameters: - party_id – party id
- accept – accept
-
set_party_leader(steam_id)¶ Set the new party leader.
Parameters: steam_id – steam_id Returns: job event id Return type: str
-
set_party_coach_flag(coach)¶ Set the bot’s status as a coach.
Parameters: coach – bool Returns: job event id Return type: str Response event:
party_coachParameters: - steam_id (
int) – steam_id for response - message – CMsgDOTAPartyMemberSetCoach proto message
- steam_id (
-
invite_to_party(steam_id)¶ Invites a player to a party. This will create a new party if you aren’t in one.
Parameters: steam_id – steam_id Returns: job event id Return type: str Response event:
invite_to_partyParameters: message – CMsgInvitationCreated proto message
-
kick_from_party(steam_id)¶ Kicks a player from the party. This will create a new party if you aren’t in one.
Parameters: steam_id – steam_id Returns: job event id Return type: str Response event:
kick_from_partyParameters: - steam_id (
int) – steam_id for response - message – CMsgKickFromParty proto message
- steam_id (
-