Esempio n. 1
0
        public VCLock LockChannel(SocketVoiceChannel voice, SocketTextChannel text)
        {
            var vclock = new VCLock()
            {
                Voice      = voice,
                Text       = text,
                UserLimit  = voice.UserLimit,
                Name       = voice.Name,
                Authorised = voice.Users.ToList(),
            };

            LockedChannels[voice.Id] = vclock;
            OnSave();
            return(vclock);
        }
Esempio n. 2
0
 public void UnLockChannel(VCLock lck)
 {
     LockedChannels.Remove(lck.Voice.Id);
     lck.Remove();
     OnSave();
 }