예제 #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);
        }
예제 #2
0
 public void UnLockChannel(VCLock lck)
 {
     LockedChannels.Remove(lck.Voice.Id);
     lck.Remove();
     OnSave();
 }