PINE LIBRARY
已更新 DiscordWebhookFunction

Library "DiscordWebhookFunction"
discordMarkdown(_str, _italic, _bold, _code, _strike, _under) Convert string to markdown formatting User can combine any function at the same time.
Parameters:
_str: String input
_italic: Italic
_bold: Bold
_code: Code markdown
_strike: Strikethrough
_under: Underline
Returns: string Markdown formatted string.
discordWebhookJSON(_username, _avatarImgUrl, _contentText, _bodyTitle, _descText, _bodyUrl, _embedCol, _timestamp, _authorName, _authorUrl, _authorIconUrl, _footerText, _footerIconUrl, _thumbImgUrl, _imageUrl) Convert data to JSON format for Discord Webhook Integration.
Parameters:
_username: Override bot (webhook) username string / name,
_avatarImgUrl: Override bot (webhook) avatar by image URL,
_contentText: Main content page message,
_bodyTitle: Custom Webhook's embed message body title,
_descText: Webhook's embed message body description,
_bodyUrl: Webhook's embed body direct link URL,
_embedCol: Webhook's embed color,
_timestamp: Timestamp,
_authorName: Webhook's embed author name / title,
_authorUrl: Webhook's embed author direct link URL,
_authorIconUrl: Webhook's embed author icon by image URL,
_footerText: Webhook's embed footer text / title,
_footerIconUrl: Webhook's embed footer icon by image URL,
_thumbImgUrl: Webhook's embed thumbnail image URL,
_imageUrl: Webhook's embed body image URL.
Returns: string Single-line JSON format
discordMarkdown(_str, _italic, _bold, _code, _strike, _under) Convert string to markdown formatting User can combine any function at the same time.
Parameters:
_str: String input
_italic: Italic
_bold: Bold
_code: Code markdown
_strike: Strikethrough
_under: Underline
Returns: string Markdown formatted string.
discordWebhookJSON(_username, _avatarImgUrl, _contentText, _bodyTitle, _descText, _bodyUrl, _embedCol, _timestamp, _authorName, _authorUrl, _authorIconUrl, _footerText, _footerIconUrl, _thumbImgUrl, _imageUrl) Convert data to JSON format for Discord Webhook Integration.
Parameters:
_username: Override bot (webhook) username string / name,
_avatarImgUrl: Override bot (webhook) avatar by image URL,
_contentText: Main content page message,
_bodyTitle: Custom Webhook's embed message body title,
_descText: Webhook's embed message body description,
_bodyUrl: Webhook's embed body direct link URL,
_embedCol: Webhook's embed color,
_timestamp: Timestamp,
_authorName: Webhook's embed author name / title,
_authorUrl: Webhook's embed author direct link URL,
_authorIconUrl: Webhook's embed author icon by image URL,
_footerText: Webhook's embed footer text / title,
_footerIconUrl: Webhook's embed footer icon by image URL,
_thumbImgUrl: Webhook's embed thumbnail image URL,
_imageUrl: Webhook's embed body image URL.
Returns: string Single-line JSON format
發行說明
Revision 1.1- Minor changes to mitigate field bug. (Untested, please let me know if it's fixed or not.)
發行說明
v3Updated:
discordWebhookJSON(_contentText, _username, _avatarImgUrl, _bodyTitle, _descText, _bodyUrl, _embedCol, _timestamp, _authorName, _authorUrl, _authorIconUrl, _footerText, _footerIconUrl, _thumbImgUrl, _imageUrl)
Convert data to JSON format for Discord Webhook Integration.
Parameters:
_contentText: Main content page message,
_username: Override bot (webhook) username string / name,
_avatarImgUrl: Override bot (webhook) avatar by image URL,
_bodyTitle: Custom Webhook's embed message body title,
_descText: Webhook's embed message body description,
_bodyUrl: Webhook's embed body direct link URL,
_embedCol: Webhook's embed color,
_timestamp: Timestamp,
_authorName: Webhook's embed author name / title,
_authorUrl: Webhook's embed author direct link URL,
_authorIconUrl: Webhook's embed author icon by image URL,
_footerText: Webhook's embed footer text / title,
_footerIconUrl: Webhook's embed footer icon by image URL,
_thumbImgUrl: Webhook's embed thumbnail image URL,
_imageUrl: Webhook's embed body image URL.
Returns: string Single-line JSON format
- Fixed parameter structure, WARNING! This update will break any previous parameter since it have different order to mitigate discord issue. (untested update)
Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。