v2
New Features:
* Embed Footer Support: You can now enhance your embeds with custom footers. This addition allows for more informative and branded messages (footerText and footerIconUrl).
Updated:
createEmbedJSON(title, description, color, authorName, authorUrl, authorIconUrl, fields, 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'.
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.
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.