UNPKG

discord-webhook-library

Version:

A powerful and easy-to-use library for creating and sending richly formatted messages to Discord webhooks, with built-in validation and rate-limiting.

19 lines (18 loc) 556 B
export declare class Footer { text: string; icon_url?: string; /** * Creates a new Footer instance for an embed. * @param text The text to display in the footer (max 2048 characters). * @param icon_url Optional URL for a small icon next to the text. */ constructor(text: string, icon_url?: string); /** * Returns the JSON representation of the footer. * @returns A plain object representing the footer's payload. */ toJSON(): { text: string; icon_url: string | undefined; }; }