Class ElementMusic
Inheritance
System.Object
ElementMusic
Assembly: cqhttp.Cyan.dll
Syntax
public class ElementMusic : Element
Constructors
|
Improve this Doc
View Source
ElementMusic(String, Int64)
Declaration
public ElementMusic(string type, long id)
Parameters
| Type |
Name |
Description |
| System.String |
type |
|
| System.Int64 |
id |
|
Methods
|
Improve this Doc
View Source
GetMusicID(String, String)
以相应关键词在对应平台上搜索歌曲,取结果中的第一首的id
Declaration
public static Task<long> GetMusicID(string type, string keyword)
Parameters
| Type |
Name |
Description |
| System.String |
type |
|
| System.String |
keyword |
|
Returns
| Type |
Description |
| Task<System.Int64> |
|