Kick a Party Member
Last updated on
Kick some party members will send a notification for all player members and party leaders that are still in the party.
- Unreal Engine
- Unity
FRegistry::Lobby.Connect();
FRegistry::Lobby.SetPartyKickNotifDelegate(AccelByte::Api::Lobby::FPartyKickNotif::CreateLambda([](const FAccelByteModelsGotKickedFromPartyNotice& Result)
{
// Do something if PartyKickNotifDelegate has been successful
}));
AccelBytePlugin.GetLobby().Connect();
AccelBytePlugin.GetLobby().KickedFromParty += result =>
{
if (result.IsError)
{
// Do something if KickedFromParty has an error
Debug.Log($"Error KickedFromParty, Error Code: {result.Error.Code} Error Message: {result.Error.Message}");
}
else
{
// Do something if KickedFromParty has been successful
}
};