Class ElementMusicCustom
Inherited Members
Namespace: cqhttp.Cyan.Messages.CQElements
Assembly: cqhttp.Cyan.dll
Syntax
public class ElementMusicCustom : BaseElementShare
Constructors
| Improve this Doc View SourceElementMusicCustom(String, String, String, String, String)
音乐自定义分享
Declaration
public ElementMusicCustom(string url, string audio, string title, string content = "", string image = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | url | 分享链接,即点击分享后进入的音乐页面(如歌曲介绍页) |
System.String | audio | 音频链接(如mp3链接) |
System.String | title | 音乐的标题,建议12字以内。 |
System.String | content | 音乐的简介,建议30字以内。该参数可被忽略。 |
System.String | image | 音乐的封面图片链接。若参数为空或被忽略,则显示默认图片。 |