Reject a Party Notification
Last updated on
This is how the player party member and party leader will get notification after the invitation player rejects the invitation request.
- Unreal Engine
- Unity
FRegistry::Lobby.Connect();
FRegistry::Lobby.SetPartyInvitationRejectedNotifDelegate(AccelByte::Api::Lobby::FPartyRejectNotif::CreateLambda([](const FAccelByteModelsPartyRejectNotice& Result)
{
// Do something if PartyInvitationRejectedNotifDelegate has been successful
}));
AccelBytePlugin.GetLobby().Connect();
AccelBytePlugin.GetLobby().RejectedPartyInvitation += result =>
{
if (result.IsError)
{
// Do something if RejectedPartyInvitation has an error
Debug.Log($"Error RejectedPartyInvitation, Error Code: {result.Error.Code} Error Message: {result.Error.Message}");
}
else
{
// Do something if RejectedPartyInvitation has been successful
}
};