internal LavaPlayer(IVoiceChannel voiceChannel, ITextChannel textChannel, SocketHelper socketHelper) { VoiceChannel = voiceChannel; TextChannel = textChannel; _socketHelper = socketHelper; Queue = new LavaQueue <IQueueObject>(); }
internal LavaPlayer(LavaNode lavaNode, IVoiceChannel voiceChannel, IMessageChannel textChannel) { TextChannel = textChannel; VoiceChannel = voiceChannel; _lavaSocket = lavaNode.LavaSocket; Volatile.Write(ref _isDisposed, false); Queue = new LavaQueue <LavaTrack>(); }
private void Dispose() { _lavaSocket.SendPayload(new DestroyPayload(Guild.Id)); VoiceChannel = null; TextChannel = null; CurrentTrack = null; Position = TimeSpan.MinValue; LastUpdate = DateTime.Now; Queue = null; Volatile.Write(ref _isDisposed, true); }
internal LavaPlayer() { Queue = new LavaQueue <IQueueObject>(); }