Search Results for

    Show / Hide Table of Contents

    Class ElementMusic

    Inheritance
    System.Object
    Element
    ElementMusic
    Inherited Members
    Element.type
    Element.data
    Element.isSingle
    Element.Equals(Object)
    Element.GetHashCode()
    Element.ToString()
    Element.GetElement(String, Dictionary<String, String>)
    Namespace: cqhttp.Cyan.Messages.CQElements
    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>
    • Improve this Doc
    • View Source
    ☀
    ☾