Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async def party_lookup_ping(self, user_id: str) -> list:
r = PartyService(
('/party/api/v1/Fortnite/user/{client_id}/pings/'
'{user_id}/parties'),
client_id=self.client.user.id,
user_id=user_id
)
return await self.get(r)
async def party_member_confirm(self, party_id: str, user_id: str) -> Any:
r = PartyService(
('/party/api/v1/Fortnite/parties/{party_id}/members/'
'{user_id}/confirm'),
party_id=party_id,
user_id=user_id
)
return await self.post(r, json={})
'meta': {
'urn:epic:conn:platform_s': self.client.platform.value,
'urn:epic:conn:type_s': conn_type,
},
},
'meta': {
'urn:epic:member:dn_s': self.client.user.display_name,
'urn:epic:member:type_s': conn_type,
'urn:epic:member:platform_s': self.client.platform.value,
'urn:epic:member:joinrequest_j': json.dumps({
'CrossplayPreference_i': '1'
}),
}
}
r = PartyService(
'/party/api/v1/Fortnite/parties/{party_id}/members/{client_id}',
party_id=party_id,
client_id=self.client.user.id
)
return await self.delete(r, json=payload)
},
},
'meta': {
'urn:epic:cfg:accepting-members_b': False,
'urn:epic:cfg:build-id_s': str(self.client.party_build_id),
'urn:epic:cfg:can-join_b': True,
'urn:epic:cfg:chat-enabled_b': _chat_enabled,
'urn:epic:cfg:invite-perm_s': 'Noone',
'urn:epic:cfg:join-request-action_s': 'Manual',
'urn:epic:cfg:not-accepting-members-reason_i': 0,
'urn:epic:cfg:party-type-id_s': 'default',
'urn:epic:cfg:presence-perm_s': 'Noone',
}
}
r = PartyService('/party/api/v1/Fortnite/parties')
return await self.post(r, json=payload)
async def party_member_reject(self, party_id: str, user_id: str) -> Any:
r = PartyService(
('/party/api/v1/Fortnite/parties/{party_id}/members/'
'{user_id}/reject'),
party_id=party_id,
user_id=user_id
)
return await self.post(r, json={})
async def party_decline_invite(self, party_id: str) -> Any:
r = PartyService(
('/party/api/v1/Fortnite/parties/{party_id}/invites/'
'{client_id}/decline'),
party_id=party_id,
client_id=self.client.user.id
)
return await self.post(r, json={})
},
'meta': {
'delete': deleted_meta,
'update': updated_meta,
'override': overridden_meta
},
'party_state_overridden': {},
'party_privacy_type': config['joinability'],
'party_type': config['type'],
'party_sub_type': config['sub_type'],
'max_number_of_members': config['max_size'],
'invite_ttl_seconds': config['invite_ttl_seconds'],
'revision': revision
}
r = PartyService('/party/api/v1/Fortnite/parties/{party_id}',
party_id=party_id)
return await self.patch(r, json=payload)
'users': [
{
'id': self.client.user.id,
'dn': self.client.user.display_name,
'plat': self.client.platform.value,
'data': json.dumps({
'CrossplayPreference': '1',
'SubGame_u': '1',
})
}
]
}),
},
}
r = PartyService(
('/party/api/v1/Fortnite/parties/{party_id}/members/'
'{client_id}/join'),
party_id=party_id,
client_id=self.client.user.id
)
return await self.post(r, json=payload)
async def party_send_ping(self, user_id: str) -> Any:
r = PartyService(
'/party/api/v1/Fortnite/user/{user_id}/pings/{client_id}',
user_id=user_id,
client_id=self.client.user.id
)
return await self.post(r, json={})
async def party_kick_member(self, party_id: str, user_id: str) -> Any:
r = PartyService(
'/party/api/v1/Fortnite/parties/{party_id}/members/{user_id}',
party_id=party_id,
user_id=user_id
)
return await self.delete(r)