TradingView
E5Trading
24 de Jan de 2023 13:53

DiscordLibrary 

Cosmos / TetherUSBinance

Descrição

Library "DiscordLibrary"

BoldString(str)
  Bold String in Discord Function
  Parameters:
    str

ItalicizeString(str)
  Italicize String in Discord Function
  Parameters:
    str

StrikeThroughString(str)
  Strikethrough a String in Discord Function
  Parameters:
    str

UnderlineString(str)
  Underline a String in Discord Function
  Parameters:
    str

SpoilerString(str)
  When you send the text, it will be shown as a black block, and only by clicking on it will you be able to see what is written below, in a way, unveiling the text or giving spoilers
  Parameters:
    str

HighlightString(str)
  Highlight String Function
  Parameters:
    str

BoxedString(str)
  Put String in a Box Function
  Parameters:
    str

NonEmbeddedURLString(str)
  Format URL String so that it is not an embedded Image but just the Link
  Parameters:
    str

InvisibleString(str)
  Send Inivisible Text
  Parameters:
    str

FormatTimePeriodForDiscord(_timeperiod)
  Parameters:
    _timeperiod

GetDiscordEmbedJSON(_message, _avatarURL, _botName, _role, _color, _embed_title, _embed_subtitle, _title, _url, _icon_url, _icon2_url, _footer, _description)
  Generate discord embed JSON
  Parameters:
    _message
    _avatarURL
    _botName
    _role
    _color
    _embed_title
    _embed_subtitle
    _title
    _url
    _icon_url
    _icon2_url
    _footer
    _description

GetDiscordTextJSON(_description)
  Formats Content Only JSON Message
  Parameters:
    _description

Truncate(_number, _decimalPlaces)
  Custom function to truncate (cut) excess decimal places
  Parameters:
    _number
    _decimalPlaces

FormatDiscordMessage(_textmessage, _ticker, _timeframe)
  format Content message
  Parameters:
    _textmessage
    _ticker
    _timeframe

FormatCoin(_coinText)
  Format Ticker Symbol
  Parameters:
    _coinText
Mais