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(); }
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); } }
public Member(User user) { User = user; Permissions = new ChannelPermissions(); Permissions.Lock(); }