UNPKG

@discord-additions/components

Version:

Some helpful additions to make creating components easier.

48 lines 3 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ComponentHelper = exports.Constants = exports.TextInput = exports.SelectMenu = exports.Component = exports.Button = exports.ActionRow = void 0; const ActionRow_1 = __importDefault(require("./Structures/ActionRow")); exports.ActionRow = ActionRow_1.default; const Button_1 = __importDefault(require("./Structures/Button")); exports.Button = Button_1.default; const Component_1 = __importDefault(require("./Structures/Component")); exports.Component = Component_1.default; const SelectMenu_1 = __importDefault(require("./Structures/SelectMenu")); exports.SelectMenu = SelectMenu_1.default; const TextInput_1 = __importDefault(require("./Structures/TextInput")); exports.TextInput = TextInput_1.default; const Constants = __importStar(require("./util/Constants")); exports.Constants = Constants; const ComponentHelper_1 = __importDefault(require("./ComponentHelper")); exports.ComponentHelper = ComponentHelper_1.default; __exportStar(require("./util/Constants"), exports); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSx1RUFBK0M7QUFXOUMsb0JBWE0sbUJBQVMsQ0FXTjtBQVZWLGlFQUF5QztBQVd4QyxpQkFYTSxnQkFBTSxDQVdOO0FBVlAsdUVBQStDO0FBVzlDLG9CQVhNLG1CQUFTLENBV047QUFWVix5RUFBaUQ7QUFXaEQscUJBWE0sb0JBQVUsQ0FXTjtBQVZYLHVFQUErQztBQVc5QyxvQkFYTSxtQkFBUyxDQVdOO0FBVlYsNERBQThDO0FBVzdDLDhCQUFTO0FBVlYsd0VBQWdEO0FBVy9DLDBCQVhNLHlCQUFlLENBV047QUFUaEIsbURBQWlDO0FBQ2pDLCtDQUE2QiJ9