Beispiel #1
0
            public async Task AddSongToPlaylist(
                [Summary("The name of the playlist to add a song to.")] string playlistName,
                [Summary("URL of the YouTube song to add.")] string url)
            {
                if (string.IsNullOrEmpty(playlistName))
                {
                    await ReplyAsync("Please provide a playlist name.");

                    return;
                }

                if (string.IsNullOrEmpty(url))
                {
                    await ReplyAsync("Please provide a YouTube URL.");

                    return;
                }

                await _service.AddRadioSong(Context.Message.Author, playlistName, url);
            }