예제 #1
0
 /// <summary>Displays detailed configuration information about a client including unique ID, nickname, client version, etc.</summary>
 public Task <R <ClientInfo, CommandError> > ClientInfo(ClientId clientId)
 => Send <ClientInfo>(new TsCommand("clientinfo")
 {
     { "clid", clientId },
 }).MapToSingle();
예제 #2
0
 public Task <R <ClientUidFromClid, CommandError> > GetClientUidFromClientId(ClientId clientId)
 => SendHybrid <ClientUidFromClid>(new TsCommand("clientgetuidfromclid")
 {
     { "clid", clientId }
 }, NotificationType.ClientUidFromClid).MapToSingle();
예제 #3
0
 public CmdR KickClientFromChannel(ClientId clientId, string?reasonMsg = null)
 => KickClient(new[] { clientId }, ReasonIdentifier.Channel, reasonMsg);
예제 #4
0
 public CmdR KickClientFromServer(ClientId clientId, string?reasonMsg = null)
 => KickClient(new[] { clientId }, ReasonIdentifier.Server, reasonMsg);
예제 #5
0
 public CmdR SendPrivateMessage(string message, ClientId clientId)
 => SendMessage(message, TextMessageTargetMode.Private, clientId.Value);
예제 #6
0
 public CmdR ChangeDescription(string newDescription, ClientId clientId)
 => SendVoid(new TsCommand("clientedit")
 {
     { "clid", clientId },
     { "client_description", newDescription },
 });
예제 #7
0
 /// <summary>Displays detailed configuration information about a client including unique ID, nickname, client version, etc.</summary>
 public R <ClientInfo, CommandError> ClientInfo(ClientId clientId)
 => Send <ClientInfo>(new TsCommand("clientinfo")
 {
     { "clid", clientId },
 }).WrapSingle();