UNPKG

@notoiro/djs-button-pages

Version:

A simple yet powerful module for implementing customizable embed pages with buttons in Discord chat. Works only with Discord.js.

35 lines (34 loc) 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Library's constants. */ var Constants; (function (Constants) { /** * Max length for Discord's embed. */ Constants[Constants["DiscordMaxEmbedLength"] = 6000] = "DiscordMaxEmbedLength"; /** * Max quantity of buttons per Discord's action row. */ Constants[Constants["DiscordMaxButtonsPerRow"] = 5] = "DiscordMaxButtonsPerRow"; /** * Max quantity of rows per Discord's message. */ Constants[Constants["DiscordMaxRowsPerMessage"] = 3] = "DiscordMaxRowsPerMessage"; /** * Discord's limit for interaction life-time. */ Constants[Constants["DiscordMaxInteractionLifeTime"] = 15000] = "DiscordMaxInteractionLifeTime"; /** * Library's limit for max pagination's life-time. */ Constants[Constants["LibraryMaxPageLifeTime"] = 60000] = "LibraryMaxPageLifeTime"; /** * Library's limit for minimum pagination's life-time. */ Constants[Constants["LibraryMinPageLifeTime"] = 1000] = "LibraryMinPageLifeTime"; })(Constants || (Constants = {})); ; exports.default = Constants;