SmartFoxServer 2X C++ API
|
Kicks a User out of the server (for moderators and admins only) More...
#include <KickUserRequest.h>
Inherits Sfs2X::Requests::BaseRequest.
Public Member Functions | |
KickUserRequest (long int userId) | |
KickUserRequest(long int, string, long int) More... | |
KickUserRequest (long int userId, string message) | |
KickUserRequest(long int, string, long int) More... | |
KickUserRequest (long int userId, string message, long int delaySeconds) | |
Constructor More... | |
Kicks a User out of the server (for moderators and admins only)
Allows to send a custom message and to set a delay in seconds.
Sfs2X::Requests::KickUserRequest::KickUserRequest | ( | long int | userId | ) |
Sfs2X::Requests::KickUserRequest::KickUserRequest | ( | long int | userId, |
string | message | ||
) |
Sfs2X::Requests::KickUserRequest::KickUserRequest | ( | long int | userId, |
string | message, | ||
long int | delaySeconds | ||
) |
Constructor
userId | the id of the User to be kicked out of the server |
message | a custom kick message, if null the message configured on the server side will be used |
delaySeconds | a delay in seconds between the message (immediate) and the kick (delayed). Default is 5 seconds |