Esempio n. 1
0
        public static async void Search(SoraMessage e, string keyword)
        {
            var search = await CloudMusicApi.SearchSong(keyword);

            if (search != null && search.Length > 0)
            {
                Play(e, search[0].Id);
            }
            else
            {
                await e.ReplyToOriginal("未搜索到相关结果");
            }
        }
        public async Task Search(string keyword)
        {
            var search = await CloudMusicApi.SearchSong(keyword);

            if (search != null && search.Length > 0)
            {
                await Play(search[0].Id);
            }
            else
            {
                await ReplyAsync("未搜索到相关结果");
            }
        }