예제 #1
0
        private static async Task <bool> SongIsEmpty(ISocketMessageChannel channel, Utilities utilities, LavalinkPlayer player, AudioQueue audioQueue, string song)
        {
            if (song == "" && player.Playing == true)
            {
                return(true);
            }

            else if (song == "" & player.Playing == false)
            {
                if (player.CurrentTrack == null)
                {
                    await channel.SendMessageAsync(Utilities.GetAlert("PLAY_NULL_LINK"));

                    return(true);
                }

                if (audioQueue.Queue.FirstOrDefault() != null)
                {
                    await player.ResumeAsync();
                }

                return(true);
            }

            return(false);
        }
예제 #2
0
 public async Task ResumeCmd()
 {
     LavalinkPlayer player = _lavaManager.GetPlayer(Context.Guild.Id);
     await player.ResumeAsync();
 }