Ejemplo n.º 1
0
 private Task AddPermissionsRule(ulong targetId, PermissionTarget targetType, ChannelPermissions allow = null, ChannelPermissions deny = null)
 {
     var request = new AddChannelPermissionsRequest(Id)
     {
         TargetId = targetId,
         TargetType = targetType.Value,
         Allow = allow?.RawValue ?? 0,
         Deny = deny?.RawValue ?? 0
     };
     return Client.ClientAPI.Send(request);
 }
Ejemplo n.º 2
0
 private Task AddPermissionsRule(ulong targetId, PermissionTarget targetType, uint allow, uint deny)
 {
     var request = new AddChannelPermissionsRequest(Id)
     {
         TargetId = targetId,
         TargetType = targetType.Value,
         Allow = allow,
         Deny = deny
     };
     return Client.ClientAPI.Send(request);
 }