PINE LIBRARY
EagleEyeEmbeds

Library "EagleEyeEmbeds"
Pine Script library to build out a webhook that is catered to Discord Embed
formatTimeframe()
discordWebhookJSON(contentText, username, avatar_url, embeds)
Constructs a JSON string for a Discord webhook message. This string includes optional fields for content, username, avatar URL, and embeds.
Parameters:
contentText (string): (string, optional): The main text content of the webhook message. Default is 'na'.
username (string): (string, optional): Overrides the default username of the webhook. Default is 'na'.
avatar_url (string): (string, optional): Overrides the default avatar URL of the webhook. Default is 'na'.
embeds (string): (string, optional): A string containing one or more embed JSON objects. This should be formatted correctly as a JSON array. Default is 'na'.
createEmbedJSON(title, description, url, thumbImgUrl, color, authorName, authorUrl, authorIconUrl, fields, imageUrl, timeStamp, footerText, footerIconUrl)
Creates a JSON string for a single embed object for a Discord webhook.
Parameters:
title (string): (string, optional): The title of the embed. Default is 'na' (not applicable).
description (string): (string, optional): The description text of the embed. Supports basic formatting. Default is 'na'.
url (string)
thumbImgUrl (string)
color (int): (int, optional): The color code of the embed, typically in decimal format. Default is 'na'.
authorName (string): (string, optional): The name of the author to display in the embed. Default is 'na'.
authorUrl (string): (string, optional): The URL linked to the author's name. Default is 'na'.
authorIconUrl (string): (string, optional): The URL of the icon to display next to the author's name. Default is 'na'.
fields (string): (string, optional): A string containing one or more field JSON objects. This should be formatted correctly as a JSON array. Default is 'na'. Note: Use the 'createEmbedFieldJSON' function to generate these JSON field strings before adding them to the array.
imageUrl (string)
timeStamp (string)
footerText (string): (string, optional): The footer text to display in the embed.
footerIconUrl (string): (string, optional): The URL of the icon to display next to the footer text.
createEmbedFieldJSON(name, value, inline)
Creates a JSON string representing a single field object within an embed for a Discord webhook message.
Parameters:
name (string): (string): The name of the field, acting as a title for the field content.
value (string): (string): The value of the field, containing the actual text or information you want to display within the field.
inline (bool): (bool, optional): A boolean flag indicating whether the field should be displayed inline with other fields. If set to true, the field will be displayed on the same line as the next field
Pine Script library to build out a webhook that is catered to Discord Embed
formatTimeframe()
discordWebhookJSON(contentText, username, avatar_url, embeds)
Constructs a JSON string for a Discord webhook message. This string includes optional fields for content, username, avatar URL, and embeds.
Parameters:
contentText (string): (string, optional): The main text content of the webhook message. Default is 'na'.
username (string): (string, optional): Overrides the default username of the webhook. Default is 'na'.
avatar_url (string): (string, optional): Overrides the default avatar URL of the webhook. Default is 'na'.
embeds (string): (string, optional): A string containing one or more embed JSON objects. This should be formatted correctly as a JSON array. Default is 'na'.
createEmbedJSON(title, description, url, thumbImgUrl, color, authorName, authorUrl, authorIconUrl, fields, imageUrl, timeStamp, footerText, footerIconUrl)
Creates a JSON string for a single embed object for a Discord webhook.
Parameters:
title (string): (string, optional): The title of the embed. Default is 'na' (not applicable).
description (string): (string, optional): The description text of the embed. Supports basic formatting. Default is 'na'.
url (string)
thumbImgUrl (string)
color (int): (int, optional): The color code of the embed, typically in decimal format. Default is 'na'.
authorName (string): (string, optional): The name of the author to display in the embed. Default is 'na'.
authorUrl (string): (string, optional): The URL linked to the author's name. Default is 'na'.
authorIconUrl (string): (string, optional): The URL of the icon to display next to the author's name. Default is 'na'.
fields (string): (string, optional): A string containing one or more field JSON objects. This should be formatted correctly as a JSON array. Default is 'na'. Note: Use the 'createEmbedFieldJSON' function to generate these JSON field strings before adding them to the array.
imageUrl (string)
timeStamp (string)
footerText (string): (string, optional): The footer text to display in the embed.
footerIconUrl (string): (string, optional): The URL of the icon to display next to the footer text.
createEmbedFieldJSON(name, value, inline)
Creates a JSON string representing a single field object within an embed for a Discord webhook message.
Parameters:
name (string): (string): The name of the field, acting as a title for the field content.
value (string): (string): The value of the field, containing the actual text or information you want to display within the field.
inline (bool): (bool, optional): A boolean flag indicating whether the field should be displayed inline with other fields. If set to true, the field will be displayed on the same line as the next field
파인 라이브러리
트레이딩뷰의 진정한 정신에 따라, 작성자는 이 파인 코드를 오픈소스 라이브러리로 게시하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 경의를 표합니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈소스 게시물에서 사용할 수 있지만, 이 코드의 게시물 내 재사용은 하우스 룰에 따라 규제됩니다.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
파인 라이브러리
트레이딩뷰의 진정한 정신에 따라, 작성자는 이 파인 코드를 오픈소스 라이브러리로 게시하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 경의를 표합니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈소스 게시물에서 사용할 수 있지만, 이 코드의 게시물 내 재사용은 하우스 룰에 따라 규제됩니다.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.