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