Exemplo n.º 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();
Exemplo n.º 2
0
 public Task <R <ClientUidFromClid, CommandError> > GetClientUidFromClientId(ClientId clientId)
 => SendHybrid <ClientUidFromClid>(new TsCommand("clientgetuidfromclid")
 {
     { "clid", clientId }
 }, NotificationType.ClientUidFromClid).MapToSingle();
Exemplo n.º 3
0
 public CmdR KickClientFromChannel(ClientId clientId, string?reasonMsg = null)
 => KickClient(new[] { clientId }, ReasonIdentifier.Channel, reasonMsg);
Exemplo n.º 4
0
 public CmdR KickClientFromServer(ClientId clientId, string?reasonMsg = null)
 => KickClient(new[] { clientId }, ReasonIdentifier.Server, reasonMsg);
Exemplo n.º 5
0
 public CmdR SendPrivateMessage(string message, ClientId clientId)
 => SendMessage(message, TextMessageTargetMode.Private, clientId.Value);
Exemplo n.º 6
0
 public CmdR ChangeDescription(string newDescription, ClientId clientId)
 => SendVoid(new TsCommand("clientedit")
 {
     { "clid", clientId },
     { "client_description", newDescription },
 });
Exemplo n.º 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();