Exemple #1
0
 internal PermissionOverwrite(PermissionTarget targetType, string targetId, uint allow, uint deny)
 {
     TargetType = targetType;
     TargetId   = targetId;
     Allow      = new ChannelPermissions(allow);
     Allow.Lock();
     Deny = new ChannelPermissions(deny);
     Deny.Lock();
 }
Exemple #2
0
			internal PermissionOverwrite(PermissionTarget targetType, string targetId, uint allow, uint deny)
			{
				TargetType = targetType;
				TargetId = targetId;
				Allow = new ChannelPermissions(allow);
				Allow.Lock();
				Deny = new ChannelPermissions(deny);
				Deny.Lock();
			}
Exemple #3
0
 internal void AddChannel(Channel channel)
 {
     if (_server.Id != null)
     {
         var perms = new ChannelPermissions();
         perms.Lock();
         _channels.TryAdd(channel.Id, channel);
         _permissions.TryAdd(channel.Id, perms);
         UpdateChannelPermissions(channel);
     }
 }
Exemple #4
0
 public Member(User user)
 {
     User = user;
     Permissions = new ChannelPermissions();
     Permissions.Lock();
 }
Exemple #5
0
 public Member(User user)
 {
     User        = user;
     Permissions = new ChannelPermissions();
     Permissions.Lock();
 }
Exemple #6
0
		internal void AddChannel(Channel channel)
		{
			if (_server.Id != null)
			{
				var perms = new ChannelPermissions();
				perms.Lock();
				_channels.TryAdd(channel.Id, channel);
				_permissions.TryAdd(channel.Id, perms);
				UpdateChannelPermissions(channel);
			}
		}