Remove a Player from a Session in a Channel
Last updated on
Remove a Player from a Session in a Channel
Use the following function to remove a player from a session in a channel:
- Go
- Python
- Java
err := matchmakingService.DeleteUserFromSessionInChannel(input)
if err != nil {
return err
}
return nil
from accelbyte_py_sdk.api.matchmaking import delete_user_from_session_in_channel
result, error = delete_user_from_session_in_channel(
channel_name="<channel-name>",
match_id="<match_id>",
user_id="<user-id>"
)
if error:
print(error)
wMatchmaking.deleteUserFromSessionInChannel(DeleteUserFromSessionInChannel.builder()
.namespace(namespace)
.channelName(channelName)
.matchID(matchId)
.userID(userId)
.build());