Kicking clients

Clients can be forcefully removed from a channel or the whole server. To kick a client from a channel or server call:

unsigned int ts3client_requestClientKickFromChannel(serverConnectionHandlerID, á
áclientID, á
ákickReason, á
áreturnCode);á
uint64 serverConnectionHandlerID;
anyID clientID;
const char* kickReason;
const char* returnCode;
á

unsigned int ts3client_requestClientKickFromServer(serverConnectionHandlerID, á
áclientID, á
ákickReason, á
áreturnCode);á
uint64 serverConnectionHandlerID;
anyID clientID;
const char* kickReason;
const char* returnCode;
á

Parameters

Returns ERROR_ok on success, otherwise an error code as defined in public_errors.h.


After successfully requesting a kick, one of the following events will be called:

void onClientKickFromChannelEvent(serverConnectionHandlerID, á
áclientID, á
áoldChannelID, á
ánewChannelID, á
ávisibility, á
ákickerID, á
ákickerName, á
ákickerUniqueIdentifier, á
ákickMessage);á
uint64 serverConnectionHandlerID;
anyID clientID;
uint64 oldChannelID;
uint64 newChannelID;
int visibility;
anyID kickerID;
const char* kickerName;
const char* kickerUniqueIdentifier;
const char* kickMessage;
á

void onClientKickFromServerEvent(serverConnectionHandlerID, á
áclientID, á
áoldChannelID, á
ánewChannelID, á
ávisibility, á
ákickerID, á
ákickerName, á
ákickerUniqueIdentifier, á
ákickMessage);á
uint64 serverConnectionHandlerID;
anyID clientID;
uint64 oldChannelID;
uint64 newChannelID;
int visibility;
anyID kickerID;
const char* kickerName;
const char* kickerUniqueIdentifier;
const char* kickMessage;
á

Parameters