Beispiel #1
0
 internal LavaPlayer(IVoiceChannel voiceChannel, ITextChannel textChannel,
                     SocketHelper socketHelper)
 {
     VoiceChannel  = voiceChannel;
     TextChannel   = textChannel;
     _socketHelper = socketHelper;
     Queue         = new LavaQueue <IQueueObject>();
 }
Beispiel #2
0
 internal LavaPlayer(LavaNode lavaNode, IVoiceChannel voiceChannel, IMessageChannel textChannel)
 {
     TextChannel  = textChannel;
     VoiceChannel = voiceChannel;
     _lavaSocket  = lavaNode.LavaSocket;
     Volatile.Write(ref _isDisposed, false);
     Queue = new LavaQueue <LavaTrack>();
 }
Beispiel #3
0
 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);
 }
Beispiel #4
0
 internal LavaPlayer()
 {
     Queue = new LavaQueue <IQueueObject>();
 }