game-common / pragma.party / PartyPlugin / handlePlayerCancelInviteRequest /

handlePlayerCancelInviteRequest #

open suspend fun handlePlayerCancelInviteRequest(party: Party.Party, requestingPlayer: Party.PartyPlayer, invite: Party.PartyInvite)

Called when receiving a player request to cancel a party invite. Use to determine whether the player should be allowed to cancel the party invite by calling Party.Party.cancelInvite.

By default, only allows the inviter and party leaders to cancel invites.

Used by:

  • PartyService.cancelInviteV1

Parameters #

party

The player’s current party

requestingPlayer

The player attempting to cancel the invite

invite

The party invite attempting to be cancelled