diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json
deleted file mode 100644
index 5e3ad27..0000000
--- a/node_modules/.package-lock.json
+++ /dev/null
@@ -1,264 +0,0 @@
-{
- "name": "skopa",
- "version": "0.0.1",
- "lockfileVersion": 3,
- "requires": true,
- "packages": {
- "node_modules/@discordjs/builders": {
- "version": "1.7.0",
- "resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-1.7.0.tgz",
- "integrity": "sha512-GDtbKMkg433cOZur8Dv6c25EHxduNIBsxeHrsRoIM8+AwmEZ8r0tEpckx/sHwTLwQPOF3e2JWloZh9ofCaMfAw==",
- "dependencies": {
- "@discordjs/formatters": "^0.3.3",
- "@discordjs/util": "^1.0.2",
- "@sapphire/shapeshift": "^3.9.3",
- "discord-api-types": "0.37.61",
- "fast-deep-equal": "^3.1.3",
- "ts-mixer": "^6.0.3",
- "tslib": "^2.6.2"
- },
- "engines": {
- "node": ">=16.11.0"
- }
- },
- "node_modules/@discordjs/collection": {
- "version": "1.5.3",
- "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-1.5.3.tgz",
- "integrity": "sha512-SVb428OMd3WO1paV3rm6tSjM4wC+Kecaa1EUGX7vc6/fddvw/6lg90z4QtCqm21zvVe92vMMDt9+DkIvjXImQQ==",
- "engines": {
- "node": ">=16.11.0"
- }
- },
- "node_modules/@discordjs/formatters": {
- "version": "0.3.3",
- "resolved": "https://registry.npmjs.org/@discordjs/formatters/-/formatters-0.3.3.tgz",
- "integrity": "sha512-wTcI1Q5cps1eSGhl6+6AzzZkBBlVrBdc9IUhJbijRgVjCNIIIZPgqnUj3ntFODsHrdbGU8BEG9XmDQmgEEYn3w==",
- "dependencies": {
- "discord-api-types": "0.37.61"
- },
- "engines": {
- "node": ">=16.11.0"
- }
- },
- "node_modules/@discordjs/rest": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.2.0.tgz",
- "integrity": "sha512-nXm9wT8oqrYFRMEqTXQx9DUTeEtXUDMmnUKIhZn6O2EeDY9VCdwj23XCPq7fkqMPKdF7ldAfeVKyxxFdbZl59A==",
- "dependencies": {
- "@discordjs/collection": "^2.0.0",
- "@discordjs/util": "^1.0.2",
- "@sapphire/async-queue": "^1.5.0",
- "@sapphire/snowflake": "^3.5.1",
- "@vladfrangu/async_event_emitter": "^2.2.2",
- "discord-api-types": "0.37.61",
- "magic-bytes.js": "^1.5.0",
- "tslib": "^2.6.2",
- "undici": "5.27.2"
- },
- "engines": {
- "node": ">=16.11.0"
- }
- },
- "node_modules/@discordjs/rest/node_modules/@discordjs/collection": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-2.0.0.tgz",
- "integrity": "sha512-YTWIXLrf5FsrLMycpMM9Q6vnZoR/lN2AWX23/Cuo8uOOtS8eHB2dyQaaGnaF8aZPYnttf2bkLMcXn/j6JUOi3w==",
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@discordjs/util": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/@discordjs/util/-/util-1.0.2.tgz",
- "integrity": "sha512-IRNbimrmfb75GMNEjyznqM1tkI7HrZOf14njX7tCAAUetyZM1Pr8hX/EK2lxBCOgWDRmigbp24fD1hdMfQK5lw==",
- "engines": {
- "node": ">=16.11.0"
- }
- },
- "node_modules/@discordjs/ws": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/@discordjs/ws/-/ws-1.0.2.tgz",
- "integrity": "sha512-+XI82Rm2hKnFwAySXEep4A7Kfoowt6weO6381jgW+wVdTpMS/56qCvoXyFRY0slcv7c/U8My2PwIB2/wEaAh7Q==",
- "dependencies": {
- "@discordjs/collection": "^2.0.0",
- "@discordjs/rest": "^2.1.0",
- "@discordjs/util": "^1.0.2",
- "@sapphire/async-queue": "^1.5.0",
- "@types/ws": "^8.5.9",
- "@vladfrangu/async_event_emitter": "^2.2.2",
- "discord-api-types": "0.37.61",
- "tslib": "^2.6.2",
- "ws": "^8.14.2"
- },
- "engines": {
- "node": ">=16.11.0"
- }
- },
- "node_modules/@discordjs/ws/node_modules/@discordjs/collection": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-2.0.0.tgz",
- "integrity": "sha512-YTWIXLrf5FsrLMycpMM9Q6vnZoR/lN2AWX23/Cuo8uOOtS8eHB2dyQaaGnaF8aZPYnttf2bkLMcXn/j6JUOi3w==",
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@fastify/busboy": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.0.tgz",
- "integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==",
- "engines": {
- "node": ">=14"
- }
- },
- "node_modules/@sapphire/async-queue": {
- "version": "1.5.1",
- "resolved": "https://registry.npmjs.org/@sapphire/async-queue/-/async-queue-1.5.1.tgz",
- "integrity": "sha512-1RdpsmDQR/aWfp8oJzPtn4dNQrbpqSL5PIA0uAB/XwerPXUf994Ug1au1e7uGcD7ei8/F63UDjr5GWps1g/HxQ==",
- "engines": {
- "node": ">=v14.0.0",
- "npm": ">=7.0.0"
- }
- },
- "node_modules/@sapphire/shapeshift": {
- "version": "3.9.5",
- "resolved": "https://registry.npmjs.org/@sapphire/shapeshift/-/shapeshift-3.9.5.tgz",
- "integrity": "sha512-AGdHe+51gF7D3W8hBfuSFLBocURDCXVQczScTHXDS3RpNjNgrktIx/amlz5y8nHhm8SAdFt/X8EF8ZSfjJ0tnA==",
- "dependencies": {
- "fast-deep-equal": "^3.1.3",
- "lodash": "^4.17.21"
- },
- "engines": {
- "node": ">=v18"
- }
- },
- "node_modules/@sapphire/snowflake": {
- "version": "3.5.1",
- "resolved": "https://registry.npmjs.org/@sapphire/snowflake/-/snowflake-3.5.1.tgz",
- "integrity": "sha512-BxcYGzgEsdlG0dKAyOm0ehLGm2CafIrfQTZGWgkfKYbj+pNNsorZ7EotuZukc2MT70E0UbppVbtpBrqpzVzjNA==",
- "engines": {
- "node": ">=v14.0.0",
- "npm": ">=7.0.0"
- }
- },
- "node_modules/@types/node": {
- "version": "20.10.5",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.5.tgz",
- "integrity": "sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==",
- "dependencies": {
- "undici-types": "~5.26.4"
- }
- },
- "node_modules/@types/ws": {
- "version": "8.5.9",
- "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.9.tgz",
- "integrity": "sha512-jbdrY0a8lxfdTp/+r7Z4CkycbOFN8WX+IOchLJr3juT/xzbJ8URyTVSJ/hvNdadTgM1mnedb47n+Y31GsFnQlg==",
- "dependencies": {
- "@types/node": "*"
- }
- },
- "node_modules/@vladfrangu/async_event_emitter": {
- "version": "2.2.4",
- "resolved": "https://registry.npmjs.org/@vladfrangu/async_event_emitter/-/async_event_emitter-2.2.4.tgz",
- "integrity": "sha512-ButUPz9E9cXMLgvAW8aLAKKJJsPu1dY1/l/E8xzLFuysowXygs6GBcyunK9rnGC4zTsnIc2mQo71rGw9U+Ykug==",
- "engines": {
- "node": ">=v14.0.0",
- "npm": ">=7.0.0"
- }
- },
- "node_modules/discord-api-types": {
- "version": "0.37.61",
- "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.61.tgz",
- "integrity": "sha512-o/dXNFfhBpYHpQFdT6FWzeO7pKc838QeeZ9d91CfVAtpr5XLK4B/zYxQbYgPdoMiTDvJfzcsLW5naXgmHGDNXw=="
- },
- "node_modules/discord.js": {
- "version": "14.14.1",
- "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.14.1.tgz",
- "integrity": "sha512-/hUVzkIerxKHyRKopJy5xejp4MYKDPTszAnpYxzVVv4qJYf+Tkt+jnT2N29PIPschicaEEpXwF2ARrTYHYwQ5w==",
- "dependencies": {
- "@discordjs/builders": "^1.7.0",
- "@discordjs/collection": "1.5.3",
- "@discordjs/formatters": "^0.3.3",
- "@discordjs/rest": "^2.1.0",
- "@discordjs/util": "^1.0.2",
- "@discordjs/ws": "^1.0.2",
- "@sapphire/snowflake": "3.5.1",
- "@types/ws": "8.5.9",
- "discord-api-types": "0.37.61",
- "fast-deep-equal": "3.1.3",
- "lodash.snakecase": "4.1.1",
- "tslib": "2.6.2",
- "undici": "5.27.2",
- "ws": "8.14.2"
- },
- "engines": {
- "node": ">=16.11.0"
- }
- },
- "node_modules/fast-deep-equal": {
- "version": "3.1.3",
- "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
- "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
- },
- "node_modules/lodash": {
- "version": "4.17.21",
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
- "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
- },
- "node_modules/lodash.snakecase": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz",
- "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw=="
- },
- "node_modules/magic-bytes.js": {
- "version": "1.7.0",
- "resolved": "https://registry.npmjs.org/magic-bytes.js/-/magic-bytes.js-1.7.0.tgz",
- "integrity": "sha512-YzVU2+/hrjwx8xcgAw+ffNq3jkactpj+f1iSL4LonrFKhvnwDzHSqtFdk/MMRP53y9ScouJ7cKEnqYsJwsHoYA=="
- },
- "node_modules/ts-mixer": {
- "version": "6.0.3",
- "resolved": "https://registry.npmjs.org/ts-mixer/-/ts-mixer-6.0.3.tgz",
- "integrity": "sha512-k43M7uCG1AkTyxgnmI5MPwKoUvS/bRvLvUb7+Pgpdlmok8AoqmUaZxUUw8zKM5B1lqZrt41GjYgnvAi0fppqgQ=="
- },
- "node_modules/tslib": {
- "version": "2.6.2",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
- "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q=="
- },
- "node_modules/undici": {
- "version": "5.27.2",
- "resolved": "https://registry.npmjs.org/undici/-/undici-5.27.2.tgz",
- "integrity": "sha512-iS857PdOEy/y3wlM3yRp+6SNQQ6xU0mmZcwRSriqk+et/cwWAtwmIGf6WkoDN2EK/AMdCO/dfXzIwi+rFMrjjQ==",
- "dependencies": {
- "@fastify/busboy": "^2.0.0"
- },
- "engines": {
- "node": ">=14.0"
- }
- },
- "node_modules/undici-types": {
- "version": "5.26.5",
- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
- "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="
- },
- "node_modules/ws": {
- "version": "8.14.2",
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.14.2.tgz",
- "integrity": "sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==",
- "engines": {
- "node": ">=10.0.0"
- },
- "peerDependencies": {
- "bufferutil": "^4.0.1",
- "utf-8-validate": ">=5.0.2"
- },
- "peerDependenciesMeta": {
- "bufferutil": {
- "optional": true
- },
- "utf-8-validate": {
- "optional": true
- }
- }
- }
- }
-}
diff --git a/node_modules/@discordjs/builders/LICENSE b/node_modules/@discordjs/builders/LICENSE
deleted file mode 100644
index cbe9c65..0000000
--- a/node_modules/@discordjs/builders/LICENSE
+++ /dev/null
@@ -1,191 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- Copyright 2021 Noel Buechler
- Copyright 2021 Vlad Frangu
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/node_modules/@discordjs/builders/README.md b/node_modules/@discordjs/builders/README.md
deleted file mode 100644
index dc88b7f..0000000
--- a/node_modules/@discordjs/builders/README.md
+++ /dev/null
@@ -1,72 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-## About
-
-`@discordjs/builders` is a utility package for easily building Discord API payloads.
-
-## Installation
-
-**Node.js 16.11.0 or newer is required.**
-
-```sh
-npm install @discordjs/builders
-yarn add @discordjs/builders
-pnpm add @discordjs/builders
-```
-
-## Examples
-
-You can find examples of how to use the builders in the [Slash Command Builders][example] examples.
-
-## Links
-
-- [Website][website] ([source][website-source])
-- [Documentation][documentation]
-- [Guide][guide] ([source][guide-source])
- Also see the v13 to v14 [Update Guide][guide-update], which includes updated and removed items from the library.
-- [discord.js Discord server][discord]
-- [Discord API Discord server][discord-api]
-- [GitHub][source]
-- [npm][npm]
-- [Related libraries][related-libs]
-
-## Contributing
-
-Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the
-[documentation][documentation].
-See [the contribution guide][contributing] if you'd like to submit a PR.
-
-## Help
-
-If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official [discord.js Server][discord].
-
-[example]: https://github.com/discordjs/discord.js/blob/main/packages/builders/docs/examples/Slash%20Command%20Builders.md
-[website]: https://discord.js.org
-[website-source]: https://github.com/discordjs/discord.js/tree/main/apps/website
-[documentation]: https://discord.js.org/docs/packages/builders/stable
-[guide]: https://discordjs.guide/
-[guide-source]: https://github.com/discordjs/guide
-[guide-update]: https://discordjs.guide/additional-info/changes-in-v14.html
-[discord]: https://discord.gg/djs
-[discord-api]: https://discord.gg/discord-api
-[source]: https://github.com/discordjs/discord.js/tree/main/packages/builders
-[npm]: https://www.npmjs.com/package/@discordjs/builders
-[related-libs]: https://discord.com/developers/docs/topics/community-resources#libraries
-[contributing]: https://github.com/discordjs/discord.js/blob/main/.github/CONTRIBUTING.md
diff --git a/node_modules/@discordjs/builders/dist/index.d.mts b/node_modules/@discordjs/builders/dist/index.d.mts
deleted file mode 100644
index 0280fc5..0000000
--- a/node_modules/@discordjs/builders/dist/index.d.mts
+++ /dev/null
@@ -1,2008 +0,0 @@
-import * as _sapphire_shapeshift from '@sapphire/shapeshift';
-import { APIEmbedField, APIEmbedAuthor, APIEmbedFooter, APIEmbedImage, APIEmbed, APISelectMenuOption, APIMessageComponentEmoji, ButtonStyle, ChannelType, APIActionRowComponent, APIActionRowComponentTypes, APIBaseComponent, ComponentType, APIButtonComponent, APISelectMenuComponent, APIChannelSelectComponent, Snowflake, APIMentionableSelectComponent, APISelectMenuDefaultValue, SelectMenuDefaultValueType, APIRoleSelectComponent, APIStringSelectComponent, APIUserSelectComponent, APITextInputComponent, TextInputStyle, APIMessageActionRowComponent, APIModalActionRowComponent, APIModalComponent, APIMessageComponent, APIModalInteractionResponseCallbackData, LocalizationMap, LocaleString, ApplicationCommandOptionType, APIApplicationCommandBasicOption, APIApplicationCommandAttachmentOption, APIApplicationCommandBooleanOption, APIApplicationCommandChannelOption, APIApplicationCommandOptionChoice, APIApplicationCommandIntegerOption, APIApplicationCommandMentionableOption, APIApplicationCommandNumberOption, APIApplicationCommandRoleOption, APIApplicationCommandStringOption, APIApplicationCommandUserOption, APIApplicationCommandSubcommandGroupOption, APIApplicationCommandSubcommandOption, Permissions, RESTPostAPIChatInputApplicationCommandsJSONBody, APIApplicationCommandOption, Locale, ApplicationCommandType, RESTPostAPIContextMenuApplicationCommandsJSONBody } from 'discord-api-types/v10';
-export * from '@discordjs/formatters';
-import { JSONEncodable, Equatable } from '@discordjs/util';
-
-declare const fieldNamePredicate: _sapphire_shapeshift.StringValidator;
-declare const fieldValuePredicate: _sapphire_shapeshift.StringValidator;
-declare const fieldInlinePredicate: _sapphire_shapeshift.UnionValidator;
-declare const embedFieldPredicate: _sapphire_shapeshift.ObjectValidator<{
- name: string;
- value: string;
- inline: boolean | undefined;
-}, _sapphire_shapeshift.UndefinedToOptional<{
- name: string;
- value: string;
- inline: boolean | undefined;
-}>>;
-declare const embedFieldsArrayPredicate: _sapphire_shapeshift.ArrayValidator<_sapphire_shapeshift.UndefinedToOptional<{
- name: string;
- value: string;
- inline: boolean | undefined;
-}>[], _sapphire_shapeshift.UndefinedToOptional<{
- name: string;
- value: string;
- inline: boolean | undefined;
-}>>;
-declare const fieldLengthPredicate: _sapphire_shapeshift.NumberValidator;
-declare function validateFieldLength(amountAdding: number, fields?: APIEmbedField[]): void;
-declare const authorNamePredicate: _sapphire_shapeshift.UnionValidator;
-declare const imageURLPredicate: _sapphire_shapeshift.UnionValidator;
-declare const urlPredicate: _sapphire_shapeshift.UnionValidator;
-declare const embedAuthorPredicate: _sapphire_shapeshift.ObjectValidator<{
- name: string | null;
- iconURL: string | null | undefined;
- url: string | null | undefined;
-}, _sapphire_shapeshift.UndefinedToOptional<{
- name: string | null;
- iconURL: string | null | undefined;
- url: string | null | undefined;
-}>>;
-declare const RGBPredicate: _sapphire_shapeshift.NumberValidator;
-declare const colorPredicate: _sapphire_shapeshift.UnionValidator;
-declare const descriptionPredicate: _sapphire_shapeshift.UnionValidator;
-declare const footerTextPredicate: _sapphire_shapeshift.UnionValidator;
-declare const embedFooterPredicate: _sapphire_shapeshift.ObjectValidator<{
- text: string | null;
- iconURL: string | null | undefined;
-}, _sapphire_shapeshift.UndefinedToOptional<{
- text: string | null;
- iconURL: string | null | undefined;
-}>>;
-declare const timestampPredicate: _sapphire_shapeshift.UnionValidator;
-declare const titlePredicate: _sapphire_shapeshift.UnionValidator;
-
-declare const Assertions$5_RGBPredicate: typeof RGBPredicate;
-declare const Assertions$5_authorNamePredicate: typeof authorNamePredicate;
-declare const Assertions$5_colorPredicate: typeof colorPredicate;
-declare const Assertions$5_descriptionPredicate: typeof descriptionPredicate;
-declare const Assertions$5_embedAuthorPredicate: typeof embedAuthorPredicate;
-declare const Assertions$5_embedFieldPredicate: typeof embedFieldPredicate;
-declare const Assertions$5_embedFieldsArrayPredicate: typeof embedFieldsArrayPredicate;
-declare const Assertions$5_embedFooterPredicate: typeof embedFooterPredicate;
-declare const Assertions$5_fieldInlinePredicate: typeof fieldInlinePredicate;
-declare const Assertions$5_fieldLengthPredicate: typeof fieldLengthPredicate;
-declare const Assertions$5_fieldNamePredicate: typeof fieldNamePredicate;
-declare const Assertions$5_fieldValuePredicate: typeof fieldValuePredicate;
-declare const Assertions$5_footerTextPredicate: typeof footerTextPredicate;
-declare const Assertions$5_imageURLPredicate: typeof imageURLPredicate;
-declare const Assertions$5_timestampPredicate: typeof timestampPredicate;
-declare const Assertions$5_titlePredicate: typeof titlePredicate;
-declare const Assertions$5_urlPredicate: typeof urlPredicate;
-declare const Assertions$5_validateFieldLength: typeof validateFieldLength;
-declare namespace Assertions$5 {
- export {
- Assertions$5_RGBPredicate as RGBPredicate,
- Assertions$5_authorNamePredicate as authorNamePredicate,
- Assertions$5_colorPredicate as colorPredicate,
- Assertions$5_descriptionPredicate as descriptionPredicate,
- Assertions$5_embedAuthorPredicate as embedAuthorPredicate,
- Assertions$5_embedFieldPredicate as embedFieldPredicate,
- Assertions$5_embedFieldsArrayPredicate as embedFieldsArrayPredicate,
- Assertions$5_embedFooterPredicate as embedFooterPredicate,
- Assertions$5_fieldInlinePredicate as fieldInlinePredicate,
- Assertions$5_fieldLengthPredicate as fieldLengthPredicate,
- Assertions$5_fieldNamePredicate as fieldNamePredicate,
- Assertions$5_fieldValuePredicate as fieldValuePredicate,
- Assertions$5_footerTextPredicate as footerTextPredicate,
- Assertions$5_imageURLPredicate as imageURLPredicate,
- Assertions$5_timestampPredicate as timestampPredicate,
- Assertions$5_titlePredicate as titlePredicate,
- Assertions$5_urlPredicate as urlPredicate,
- Assertions$5_validateFieldLength as validateFieldLength,
- };
-}
-
-/**
- * Normalizes data that is a rest parameter or an array into an array with a depth of 1.
- *
- * @typeParam ItemType - The data that must satisfy {@link RestOrArray}.
- * @param arr - The (possibly variadic) data to normalize
- */
-declare function normalizeArray(arr: RestOrArray): ItemType[];
-/**
- * Represents data that may be an array or came from a rest parameter.
- *
- * @remarks
- * This type is used throughout builders to ensure both an array and variadic arguments
- * may be used. It is normalized with {@link normalizeArray}.
- */
-type RestOrArray = Type[] | [Type[]];
-
-/**
- * A tuple satisfying the RGB color model.
- *
- * @see {@link https://developer.mozilla.org/docs/Glossary/RGB}
- */
-type RGBTuple = [red: number, green: number, blue: number];
-/**
- * The base icon data typically used in payloads.
- */
-interface IconData {
- /**
- * The URL of the icon.
- */
- iconURL?: string;
- /**
- * The proxy URL of the icon.
- */
- proxyIconURL?: string;
-}
-/**
- * Represents the author data of an embed.
- */
-type EmbedAuthorData = IconData & Omit;
-/**
- * Represents the author options of an embed.
- */
-type EmbedAuthorOptions = Omit;
-/**
- * Represents the footer data of an embed.
- */
-type EmbedFooterData = IconData & Omit;
-/**
- * Represents the footer options of an embed.
- */
-type EmbedFooterOptions = Omit;
-/**
- * Represents the image data of an embed.
- */
-interface EmbedImageData extends Omit {
- /**
- * The proxy URL for the image.
- */
- proxyURL?: string;
-}
-/**
- * A builder that creates API-compatible JSON data for embeds.
- */
-declare class EmbedBuilder {
- /**
- * The API data associated with this embed.
- */
- readonly data: APIEmbed;
- /**
- * Creates a new embed from API data.
- *
- * @param data - The API data to create this embed with
- */
- constructor(data?: APIEmbed);
- /**
- * Appends fields to the embed.
- *
- * @remarks
- * This method accepts either an array of fields or a variable number of field parameters.
- * The maximum amount of fields that can be added is 25.
- * @example
- * Using an array:
- * ```ts
- * const fields: APIEmbedField[] = ...;
- * const embed = new EmbedBuilder()
- * .addFields(fields);
- * ```
- * @example
- * Using rest parameters (variadic):
- * ```ts
- * const embed = new EmbedBuilder()
- * .addFields(
- * { name: 'Field 1', value: 'Value 1' },
- * { name: 'Field 2', value: 'Value 2' },
- * );
- * ```
- * @param fields - The fields to add
- */
- addFields(...fields: RestOrArray): this;
- /**
- * Removes, replaces, or inserts fields for this embed.
- *
- * @remarks
- * This method behaves similarly
- * to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
- * The maximum amount of fields that can be added is 25.
- *
- * It's useful for modifying and adjusting order of the already-existing fields of an embed.
- * @example
- * Remove the first field:
- * ```ts
- * embed.spliceFields(0, 1);
- * ```
- * @example
- * Remove the first n fields:
- * ```ts
- * const n = 4;
- * embed.spliceFields(0, n);
- * ```
- * @example
- * Remove the last field:
- * ```ts
- * embed.spliceFields(-1, 1);
- * ```
- * @param index - The index to start at
- * @param deleteCount - The number of fields to remove
- * @param fields - The replacing field objects
- */
- spliceFields(index: number, deleteCount: number, ...fields: APIEmbedField[]): this;
- /**
- * Sets the fields for this embed.
- *
- * @remarks
- * This method is an alias for {@link EmbedBuilder.spliceFields}. More specifically,
- * it splices the entire array of fields, replacing them with the provided fields.
- *
- * You can set a maximum of 25 fields.
- * @param fields - The fields to set
- */
- setFields(...fields: RestOrArray): this;
- /**
- * Sets the author of this embed.
- *
- * @param options - The options to use
- */
- setAuthor(options: EmbedAuthorOptions | null): this;
- /**
- * Sets the color of this embed.
- *
- * @param color - The color to use
- */
- setColor(color: RGBTuple | number | null): this;
- /**
- * Sets the description of this embed.
- *
- * @param description - The description to use
- */
- setDescription(description: string | null): this;
- /**
- * Sets the footer of this embed.
- *
- * @param options - The footer to use
- */
- setFooter(options: EmbedFooterOptions | null): this;
- /**
- * Sets the image of this embed.
- *
- * @param url - The image URL to use
- */
- setImage(url: string | null): this;
- /**
- * Sets the thumbnail of this embed.
- *
- * @param url - The thumbnail URL to use
- */
- setThumbnail(url: string | null): this;
- /**
- * Sets the timestamp of this embed.
- *
- * @param timestamp - The timestamp or date to use
- */
- setTimestamp(timestamp?: Date | number | null): this;
- /**
- * Sets the title for this embed.
- *
- * @param title - The title to use
- */
- setTitle(title: string | null): this;
- /**
- * Sets the URL of this embed.
- *
- * @param url - The URL to use
- */
- setURL(url: string | null): this;
- /**
- * Serializes this builder to API-compatible JSON data.
- *
- * @remarks
- * This method runs validations on the data before serializing it.
- * As such, it may throw an error if the data is invalid.
- */
- toJSON(): APIEmbed;
-}
-
-/**
- * A builder that creates API-compatible JSON data for string select menu options.
- */
-declare class StringSelectMenuOptionBuilder implements JSONEncodable {
- data: Partial;
- /**
- * Creates a new string select menu option from API data.
- *
- * @param data - The API data to create this string select menu option with
- * @example
- * Creating a string select menu option from an API data object:
- * ```ts
- * const selectMenuOption = new SelectMenuOptionBuilder({
- * label: 'catchy label',
- * value: '1',
- * });
- * ```
- * @example
- * Creating a string select menu option using setters and API data:
- * ```ts
- * const selectMenuOption = new SelectMenuOptionBuilder({
- * default: true,
- * value: '1',
- * })
- * .setLabel('woah');
- * ```
- */
- constructor(data?: Partial);
- /**
- * Sets the label for this option.
- *
- * @param label - The label to use
- */
- setLabel(label: string): this;
- /**
- * Sets the value for this option.
- *
- * @param value - The value to use
- */
- setValue(value: string): this;
- /**
- * Sets the description for this option.
- *
- * @param description - The description to use
- */
- setDescription(description: string): this;
- /**
- * Sets whether this option is selected by default.
- *
- * @param isDefault - Whether this option is selected by default
- */
- setDefault(isDefault?: boolean): this;
- /**
- * Sets the emoji to display for this option.
- *
- * @param emoji - The emoji to use
- */
- setEmoji(emoji: APIMessageComponentEmoji): this;
- /**
- * {@inheritDoc BaseSelectMenuBuilder.toJSON}
- */
- toJSON(): APISelectMenuOption;
-}
-
-declare const customIdValidator: _sapphire_shapeshift.StringValidator;
-declare const emojiValidator: _sapphire_shapeshift.ObjectValidator<{
- name?: string | undefined;
- id?: string | undefined;
- animated?: boolean | undefined;
-}, _sapphire_shapeshift.UndefinedToOptional<{
- name?: string | undefined;
- id?: string | undefined;
- animated?: boolean | undefined;
-}>>;
-declare const disabledValidator: _sapphire_shapeshift.BooleanValidator;
-declare const buttonLabelValidator: _sapphire_shapeshift.StringValidator;
-declare const buttonStyleValidator: _sapphire_shapeshift.NativeEnumValidator;
-declare const placeholderValidator$1: _sapphire_shapeshift.StringValidator;
-declare const minMaxValidator: _sapphire_shapeshift.NumberValidator;
-declare const labelValueDescriptionValidator: _sapphire_shapeshift.StringValidator;
-declare const jsonOptionValidator: _sapphire_shapeshift.ObjectValidator<{
- label: string;
- value: string;
- description: string | undefined;
- emoji: _sapphire_shapeshift.UndefinedToOptional<{
- name?: string | undefined;
- id?: string | undefined;
- animated?: boolean | undefined;
- }> | undefined;
- default: boolean | undefined;
-}, _sapphire_shapeshift.UndefinedToOptional<{
- label: string;
- value: string;
- description: string | undefined;
- emoji: _sapphire_shapeshift.UndefinedToOptional<{
- name?: string | undefined;
- id?: string | undefined;
- animated?: boolean | undefined;
- }> | undefined;
- default: boolean | undefined;
-}>>;
-declare const optionValidator: _sapphire_shapeshift.InstanceValidator;
-declare const optionsValidator: _sapphire_shapeshift.ArrayValidator;
-declare const optionsLengthValidator: _sapphire_shapeshift.NumberValidator;
-declare function validateRequiredSelectMenuParameters(options: StringSelectMenuOptionBuilder[], customId?: string): void;
-declare const defaultValidator: _sapphire_shapeshift.BooleanValidator;
-declare function validateRequiredSelectMenuOptionParameters(label?: string, value?: string): void;
-declare const channelTypesValidator: _sapphire_shapeshift.ArrayValidator;
-declare const urlValidator: _sapphire_shapeshift.StringValidator;
-declare function validateRequiredButtonParameters(style?: ButtonStyle, label?: string, emoji?: APIMessageComponentEmoji, customId?: string, url?: string): void;
-
-declare const Assertions$4_buttonLabelValidator: typeof buttonLabelValidator;
-declare const Assertions$4_buttonStyleValidator: typeof buttonStyleValidator;
-declare const Assertions$4_channelTypesValidator: typeof channelTypesValidator;
-declare const Assertions$4_customIdValidator: typeof customIdValidator;
-declare const Assertions$4_defaultValidator: typeof defaultValidator;
-declare const Assertions$4_disabledValidator: typeof disabledValidator;
-declare const Assertions$4_emojiValidator: typeof emojiValidator;
-declare const Assertions$4_jsonOptionValidator: typeof jsonOptionValidator;
-declare const Assertions$4_labelValueDescriptionValidator: typeof labelValueDescriptionValidator;
-declare const Assertions$4_minMaxValidator: typeof minMaxValidator;
-declare const Assertions$4_optionValidator: typeof optionValidator;
-declare const Assertions$4_optionsLengthValidator: typeof optionsLengthValidator;
-declare const Assertions$4_optionsValidator: typeof optionsValidator;
-declare const Assertions$4_urlValidator: typeof urlValidator;
-declare const Assertions$4_validateRequiredButtonParameters: typeof validateRequiredButtonParameters;
-declare const Assertions$4_validateRequiredSelectMenuOptionParameters: typeof validateRequiredSelectMenuOptionParameters;
-declare const Assertions$4_validateRequiredSelectMenuParameters: typeof validateRequiredSelectMenuParameters;
-declare namespace Assertions$4 {
- export {
- Assertions$4_buttonLabelValidator as buttonLabelValidator,
- Assertions$4_buttonStyleValidator as buttonStyleValidator,
- Assertions$4_channelTypesValidator as channelTypesValidator,
- Assertions$4_customIdValidator as customIdValidator,
- Assertions$4_defaultValidator as defaultValidator,
- Assertions$4_disabledValidator as disabledValidator,
- Assertions$4_emojiValidator as emojiValidator,
- Assertions$4_jsonOptionValidator as jsonOptionValidator,
- Assertions$4_labelValueDescriptionValidator as labelValueDescriptionValidator,
- Assertions$4_minMaxValidator as minMaxValidator,
- Assertions$4_optionValidator as optionValidator,
- Assertions$4_optionsLengthValidator as optionsLengthValidator,
- Assertions$4_optionsValidator as optionsValidator,
- placeholderValidator$1 as placeholderValidator,
- Assertions$4_urlValidator as urlValidator,
- Assertions$4_validateRequiredButtonParameters as validateRequiredButtonParameters,
- Assertions$4_validateRequiredSelectMenuOptionParameters as validateRequiredSelectMenuOptionParameters,
- Assertions$4_validateRequiredSelectMenuParameters as validateRequiredSelectMenuParameters,
- };
-}
-
-/**
- * Any action row component data represented as an object.
- */
-type AnyAPIActionRowComponent = APIActionRowComponent | APIActionRowComponentTypes;
-/**
- * The base component builder that contains common symbols for all sorts of components.
- *
- * @typeParam DataType - The type of internal API data that is stored within the component
- */
-declare abstract class ComponentBuilder> = APIBaseComponent> implements JSONEncodable {
- /**
- * The API data associated with this component.
- */
- readonly data: Partial;
- /**
- * Serializes this builder to API-compatible JSON data.
- *
- * @remarks
- * This method runs validations on the data before serializing it.
- * As such, it may throw an error if the data is invalid.
- */
- abstract toJSON(): AnyAPIActionRowComponent;
- /**
- * Constructs a new kind of component.
- *
- * @param data - The data to construct a component out of
- */
- constructor(data: Partial);
-}
-
-/**
- * A builder that creates API-compatible JSON data for buttons.
- */
-declare class ButtonBuilder extends ComponentBuilder {
- /**
- * Creates a new button from API data.
- *
- * @param data - The API data to create this button with
- * @example
- * Creating a button from an API data object:
- * ```ts
- * const button = new ButtonBuilder({
- * custom_id: 'a cool button',
- * style: ButtonStyle.Primary,
- * label: 'Click Me',
- * emoji: {
- * name: 'smile',
- * id: '123456789012345678',
- * },
- * });
- * ```
- * @example
- * Creating a button using setters and API data:
- * ```ts
- * const button = new ButtonBuilder({
- * style: ButtonStyle.Secondary,
- * label: 'Click Me',
- * })
- * .setEmoji({ name: '🙂' })
- * .setCustomId('another cool button');
- * ```
- */
- constructor(data?: Partial);
- /**
- * Sets the style of this button.
- *
- * @param style - The style to use
- */
- setStyle(style: ButtonStyle): this;
- /**
- * Sets the URL for this button.
- *
- * @remarks
- * This method is only available to buttons using the `Link` button style.
- * Only three types of URL schemes are currently supported: `https://`, `http://`, and `discord://`.
- * @param url - The URL to use
- */
- setURL(url: string): this;
- /**
- * Sets the custom id for this button.
- *
- * @remarks
- * This method is only applicable to buttons that are not using the `Link` button style.
- * @param customId - The custom id to use
- */
- setCustomId(customId: string): this;
- /**
- * Sets the emoji to display on this button.
- *
- * @param emoji - The emoji to use
- */
- setEmoji(emoji: APIMessageComponentEmoji): this;
- /**
- * Sets whether this button is disabled.
- *
- * @param disabled - Whether to disable this button
- */
- setDisabled(disabled?: boolean): this;
- /**
- * Sets the label for this button.
- *
- * @param label - The label to use
- */
- setLabel(label: string): this;
- /**
- * {@inheritDoc ComponentBuilder.toJSON}
- */
- toJSON(): APIButtonComponent;
-}
-
-/**
- * The base select menu builder that contains common symbols for select menu builders.
- *
- * @typeParam SelectMenuType - The type of select menu this would be instantiated for.
- */
-declare abstract class BaseSelectMenuBuilder extends ComponentBuilder {
- /**
- * Sets the placeholder for this select menu.
- *
- * @param placeholder - The placeholder to use
- */
- setPlaceholder(placeholder: string): this;
- /**
- * Sets the minimum values that must be selected in the select menu.
- *
- * @param minValues - The minimum values that must be selected
- */
- setMinValues(minValues: number): this;
- /**
- * Sets the maximum values that must be selected in the select menu.
- *
- * @param maxValues - The maximum values that must be selected
- */
- setMaxValues(maxValues: number): this;
- /**
- * Sets the custom id for this select menu.
- *
- * @param customId - The custom id to use
- */
- setCustomId(customId: string): this;
- /**
- * Sets whether this select menu is disabled.
- *
- * @param disabled - Whether this select menu is disabled
- */
- setDisabled(disabled?: boolean): this;
- /**
- * {@inheritDoc ComponentBuilder.toJSON}
- */
- toJSON(): SelectMenuType;
-}
-
-/**
- * A builder that creates API-compatible JSON data for channel select menus.
- */
-declare class ChannelSelectMenuBuilder extends BaseSelectMenuBuilder {
- /**
- * Creates a new select menu from API data.
- *
- * @param data - The API data to create this select menu with
- * @example
- * Creating a select menu from an API data object:
- * ```ts
- * const selectMenu = new ChannelSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * placeholder: 'select an option',
- * max_values: 2,
- * });
- * ```
- * @example
- * Creating a select menu using setters and API data:
- * ```ts
- * const selectMenu = new ChannelSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * })
- * .addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement)
- * .setMinValues(2);
- * ```
- */
- constructor(data?: Partial);
- /**
- * Adds channel types to this select menu.
- *
- * @param types - The channel types to use
- */
- addChannelTypes(...types: RestOrArray): this;
- /**
- * Sets channel types for this select menu.
- *
- * @param types - The channel types to use
- */
- setChannelTypes(...types: RestOrArray): this;
- /**
- * Adds default channels to this auto populated select menu.
- *
- * @param channels - The channels to add
- */
- addDefaultChannels(...channels: RestOrArray): this;
- /**
- * Sets default channels to this auto populated select menu.
- *
- * @param channels - The channels to set
- */
- setDefaultChannels(...channels: RestOrArray): this;
- /**
- * {@inheritDoc BaseSelectMenuBuilder.toJSON}
- */
- toJSON(): APIChannelSelectComponent;
-}
-
-/**
- * A builder that creates API-compatible JSON data for mentionable select menus.
- */
-declare class MentionableSelectMenuBuilder extends BaseSelectMenuBuilder {
- /**
- * Creates a new select menu from API data.
- *
- * @param data - The API data to create this select menu with
- * @example
- * Creating a select menu from an API data object:
- * ```ts
- * const selectMenu = new MentionableSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * placeholder: 'select an option',
- * max_values: 2,
- * });
- * ```
- * @example
- * Creating a select menu using setters and API data:
- * ```ts
- * const selectMenu = new MentionableSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * })
- * .setMinValues(1);
- * ```
- */
- constructor(data?: Partial);
- /**
- * Adds default roles to this auto populated select menu.
- *
- * @param roles - The roles to add
- */
- addDefaultRoles(...roles: RestOrArray): this;
- /**
- * Adds default users to this auto populated select menu.
- *
- * @param users - The users to add
- */
- addDefaultUsers(...users: RestOrArray): this;
- /**
- * Adds default values to this auto populated select menu.
- *
- * @param values - The values to add
- */
- addDefaultValues(...values: RestOrArray | APISelectMenuDefaultValue>): this;
- /**
- * Sets default values to this auto populated select menu.
- *
- * @param values - The values to set
- */
- setDefaultValues(...values: RestOrArray | APISelectMenuDefaultValue>): this;
-}
-
-/**
- * A builder that creates API-compatible JSON data for role select menus.
- */
-declare class RoleSelectMenuBuilder extends BaseSelectMenuBuilder {
- /**
- * Creates a new select menu from API data.
- *
- * @param data - The API data to create this select menu with
- * @example
- * Creating a select menu from an API data object:
- * ```ts
- * const selectMenu = new RoleSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * placeholder: 'select an option',
- * max_values: 2,
- * });
- * ```
- * @example
- * Creating a select menu using setters and API data:
- * ```ts
- * const selectMenu = new RoleSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * })
- * .setMinValues(1);
- * ```
- */
- constructor(data?: Partial);
- /**
- * Adds default roles to this auto populated select menu.
- *
- * @param roles - The roles to add
- */
- addDefaultRoles(...roles: RestOrArray): this;
- /**
- * Sets default roles to this auto populated select menu.
- *
- * @param roles - The roles to set
- */
- setDefaultRoles(...roles: RestOrArray): this;
-}
-
-/**
- * A builder that creates API-compatible JSON data for string select menus.
- */
-declare class StringSelectMenuBuilder extends BaseSelectMenuBuilder {
- /**
- * The options within this select menu.
- */
- readonly options: StringSelectMenuOptionBuilder[];
- /**
- * Creates a new select menu from API data.
- *
- * @param data - The API data to create this select menu with
- * @example
- * Creating a select menu from an API data object:
- * ```ts
- * const selectMenu = new StringSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * placeholder: 'select an option',
- * max_values: 2,
- * options: [
- * { label: 'option 1', value: '1' },
- * { label: 'option 2', value: '2' },
- * { label: 'option 3', value: '3' },
- * ],
- * });
- * ```
- * @example
- * Creating a select menu using setters and API data:
- * ```ts
- * const selectMenu = new StringSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * })
- * .setMinValues(1)
- * .addOptions({
- * label: 'Catchy',
- * value: 'catch',
- * });
- * ```
- */
- constructor(data?: Partial);
- /**
- * Adds options to this select menu.
- *
- * @param options - The options to add
- */
- addOptions(...options: RestOrArray): this;
- /**
- * Sets the options for this select menu.
- *
- * @param options - The options to set
- */
- setOptions(...options: RestOrArray): this;
- /**
- * Removes, replaces, or inserts options for this select menu.
- *
- * @remarks
- * This method behaves similarly
- * to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice | Array.prototype.splice()}.
- * It's useful for modifying and adjusting the order of existing options.
- * @example
- * Remove the first option:
- * ```ts
- * selectMenu.spliceOptions(0, 1);
- * ```
- * @example
- * Remove the first n option:
- * ```ts
- * const n = 4;
- * selectMenu.spliceOptions(0, n);
- * ```
- * @example
- * Remove the last option:
- * ```ts
- * selectMenu.spliceOptions(-1, 1);
- * ```
- * @param index - The index to start at
- * @param deleteCount - The number of options to remove
- * @param options - The replacing option objects or builders
- */
- spliceOptions(index: number, deleteCount: number, ...options: RestOrArray): this;
- /**
- * {@inheritDoc BaseSelectMenuBuilder.toJSON}
- */
- toJSON(): APIStringSelectComponent;
-}
-
-/**
- * A builder that creates API-compatible JSON data for user select menus.
- */
-declare class UserSelectMenuBuilder extends BaseSelectMenuBuilder {
- /**
- * Creates a new select menu from API data.
- *
- * @param data - The API data to create this select menu with
- * @example
- * Creating a select menu from an API data object:
- * ```ts
- * const selectMenu = new UserSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * placeholder: 'select an option',
- * max_values: 2,
- * });
- * ```
- * @example
- * Creating a select menu using setters and API data:
- * ```ts
- * const selectMenu = new UserSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * })
- * .setMinValues(1);
- * ```
- */
- constructor(data?: Partial);
- /**
- * Adds default users to this auto populated select menu.
- *
- * @param users - The users to add
- */
- addDefaultUsers(...users: RestOrArray): this;
- /**
- * Sets default users to this auto populated select menu.
- *
- * @param users - The users to set
- */
- setDefaultUsers(...users: RestOrArray): this;
-}
-
-/**
- * A builder that creates API-compatible JSON data for text inputs.
- */
-declare class TextInputBuilder extends ComponentBuilder implements Equatable> {
- /**
- * Creates a new text input from API data.
- *
- * @param data - The API data to create this text input with
- * @example
- * Creating a select menu option from an API data object:
- * ```ts
- * const textInput = new TextInputBuilder({
- * custom_id: 'a cool select menu',
- * label: 'Type something',
- * style: TextInputStyle.Short,
- * });
- * ```
- * @example
- * Creating a select menu option using setters and API data:
- * ```ts
- * const textInput = new TextInputBuilder({
- * label: 'Type something else',
- * })
- * .setCustomId('woah')
- * .setStyle(TextInputStyle.Paragraph);
- * ```
- */
- constructor(data?: APITextInputComponent & {
- type?: ComponentType.TextInput;
- });
- /**
- * Sets the custom id for this text input.
- *
- * @param customId - The custom id to use
- */
- setCustomId(customId: string): this;
- /**
- * Sets the label for this text input.
- *
- * @param label - The label to use
- */
- setLabel(label: string): this;
- /**
- * Sets the style for this text input.
- *
- * @param style - The style to use
- */
- setStyle(style: TextInputStyle): this;
- /**
- * Sets the minimum length of text for this text input.
- *
- * @param minLength - The minimum length of text for this text input
- */
- setMinLength(minLength: number): this;
- /**
- * Sets the maximum length of text for this text input.
- *
- * @param maxLength - The maximum length of text for this text input
- */
- setMaxLength(maxLength: number): this;
- /**
- * Sets the placeholder for this text input.
- *
- * @param placeholder - The placeholder to use
- */
- setPlaceholder(placeholder: string): this;
- /**
- * Sets the value for this text input.
- *
- * @param value - The value to use
- */
- setValue(value: string): this;
- /**
- * Sets whether this text input is required.
- *
- * @param required - Whether this text input is required
- */
- setRequired(required?: boolean): this;
- /**
- * {@inheritDoc ComponentBuilder.toJSON}
- */
- toJSON(): APITextInputComponent;
- /**
- * {@inheritDoc Equatable.equals}
- */
- equals(other: APITextInputComponent | JSONEncodable): boolean;
-}
-
-/**
- * The builders that may be used for messages.
- */
-type MessageComponentBuilder = ActionRowBuilder | MessageActionRowComponentBuilder;
-/**
- * The builders that may be used for modals.
- */
-type ModalComponentBuilder = ActionRowBuilder | ModalActionRowComponentBuilder;
-/**
- * The builders that may be used within an action row for messages.
- */
-type MessageActionRowComponentBuilder = ButtonBuilder | ChannelSelectMenuBuilder | MentionableSelectMenuBuilder | RoleSelectMenuBuilder | StringSelectMenuBuilder | UserSelectMenuBuilder;
-/**
- * The builders that may be used within an action row for modals.
- */
-type ModalActionRowComponentBuilder = TextInputBuilder;
-/**
- * Any builder.
- */
-type AnyComponentBuilder = MessageActionRowComponentBuilder | ModalActionRowComponentBuilder;
-/**
- * A builder that creates API-compatible JSON data for action rows.
- *
- * @typeParam ComponentType - The types of components this action row holds
- */
-declare class ActionRowBuilder extends ComponentBuilder> {
- /**
- * The components within this action row.
- */
- readonly components: ComponentType[];
- /**
- * Creates a new action row from API data.
- *
- * @param data - The API data to create this action row with
- * @example
- * Creating an action row from an API data object:
- * ```ts
- * const actionRow = new ActionRowBuilder({
- * components: [
- * {
- * custom_id: "custom id",
- * label: "Type something",
- * style: TextInputStyle.Short,
- * type: ComponentType.TextInput,
- * },
- * ],
- * });
- * ```
- * @example
- * Creating an action row using setters and API data:
- * ```ts
- * const actionRow = new ActionRowBuilder({
- * components: [
- * {
- * custom_id: "custom id",
- * label: "Click me",
- * style: ButtonStyle.Primary,
- * type: ComponentType.Button,
- * },
- * ],
- * })
- * .addComponents(button2, button3);
- * ```
- */
- constructor({ components, ...data }?: Partial>);
- /**
- * Adds components to this action row.
- *
- * @param components - The components to add
- */
- addComponents(...components: RestOrArray): this;
- /**
- * Sets components for this action row.
- *
- * @param components - The components to set
- */
- setComponents(...components: RestOrArray): this;
- /**
- * {@inheritDoc ComponentBuilder.toJSON}
- */
- toJSON(): APIActionRowComponent>;
-}
-
-/**
- * Components here are mapped to their respective builder.
- */
-interface MappedComponentTypes {
- /**
- * The action row component type is associated with an {@link ActionRowBuilder}.
- */
- [ComponentType.ActionRow]: ActionRowBuilder;
- /**
- * The button component type is associated with an {@link ButtonBuilder}.
- */
- [ComponentType.Button]: ButtonBuilder;
- /**
- * The string select component type is associated with an {@link StringSelectMenuBuilder}.
- */
- [ComponentType.StringSelect]: StringSelectMenuBuilder;
- /**
- * The text inpiut component type is associated with an {@link TextInputBuilder}.
- */
- [ComponentType.TextInput]: TextInputBuilder;
- /**
- * The user select component type is associated with an {@link UserSelectMenuBuilder}.
- */
- [ComponentType.UserSelect]: UserSelectMenuBuilder;
- /**
- * The role select component type is associated with an {@link RoleSelectMenuBuilder}.
- */
- [ComponentType.RoleSelect]: RoleSelectMenuBuilder;
- /**
- * The mentionable select component type is associated with an {@link MentionableSelectMenuBuilder}.
- */
- [ComponentType.MentionableSelect]: MentionableSelectMenuBuilder;
- /**
- * The channel select component type is associated with an {@link ChannelSelectMenuBuilder}.
- */
- [ComponentType.ChannelSelect]: ChannelSelectMenuBuilder;
-}
-/**
- * Factory for creating components from API data.
- *
- * @typeParam ComponentType - The type of component to use
- * @param data - The API data to transform to a component class
- */
-declare function createComponentBuilder(data: (APIModalComponent | APIMessageComponent) & {
- type: ComponentType;
-}): MappedComponentTypes[ComponentType];
-/**
- * Factory for creating components from API data.
- *
- * @typeParam ComponentBuilder - The type of component to use
- * @param data - The API data to transform to a component class
- */
-declare function createComponentBuilder(data: ComponentBuilder): ComponentBuilder;
-
-declare const textInputStyleValidator: _sapphire_shapeshift.NativeEnumValidator;
-declare const minLengthValidator: _sapphire_shapeshift.NumberValidator;
-declare const maxLengthValidator: _sapphire_shapeshift.NumberValidator;
-declare const requiredValidator: _sapphire_shapeshift.BooleanValidator;
-declare const valueValidator: _sapphire_shapeshift.StringValidator;
-declare const placeholderValidator: _sapphire_shapeshift.StringValidator;
-declare const labelValidator: _sapphire_shapeshift.StringValidator;
-declare function validateRequiredParameters$3(customId?: string, style?: TextInputStyle, label?: string): void;
-
-declare const Assertions$3_labelValidator: typeof labelValidator;
-declare const Assertions$3_maxLengthValidator: typeof maxLengthValidator;
-declare const Assertions$3_minLengthValidator: typeof minLengthValidator;
-declare const Assertions$3_placeholderValidator: typeof placeholderValidator;
-declare const Assertions$3_requiredValidator: typeof requiredValidator;
-declare const Assertions$3_textInputStyleValidator: typeof textInputStyleValidator;
-declare const Assertions$3_valueValidator: typeof valueValidator;
-declare namespace Assertions$3 {
- export {
- Assertions$3_labelValidator as labelValidator,
- Assertions$3_maxLengthValidator as maxLengthValidator,
- Assertions$3_minLengthValidator as minLengthValidator,
- Assertions$3_placeholderValidator as placeholderValidator,
- Assertions$3_requiredValidator as requiredValidator,
- Assertions$3_textInputStyleValidator as textInputStyleValidator,
- validateRequiredParameters$3 as validateRequiredParameters,
- Assertions$3_valueValidator as valueValidator,
- };
-}
-
-/**
- * A builder that creates API-compatible JSON data for modals.
- */
-declare class ModalBuilder implements JSONEncodable {
- /**
- * The API data associated with this modal.
- */
- readonly data: Partial;
- /**
- * The components within this modal.
- */
- readonly components: ActionRowBuilder[];
- /**
- * Creates a new modal from API data.
- *
- * @param data - The API data to create this modal with
- */
- constructor({ components, ...data }?: Partial);
- /**
- * Sets the title of this modal.
- *
- * @param title - The title to use
- */
- setTitle(title: string): this;
- /**
- * Sets the custom id of this modal.
- *
- * @param customId - The custom id to use
- */
- setCustomId(customId: string): this;
- /**
- * Adds components to this modal.
- *
- * @param components - The components to add
- */
- addComponents(...components: RestOrArray | APIActionRowComponent>): this;
- /**
- * Sets components for this modal.
- *
- * @param components - The components to set
- */
- setComponents(...components: RestOrArray>): this;
- /**
- * {@inheritDoc ComponentBuilder.toJSON}
- */
- toJSON(): APIModalInteractionResponseCallbackData;
-}
-
-declare const titleValidator: _sapphire_shapeshift.StringValidator;
-declare const componentsValidator: _sapphire_shapeshift.ArrayValidator<[ActionRowBuilder, ...ActionRowBuilder[]], ActionRowBuilder>;
-declare function validateRequiredParameters$2(customId?: string, title?: string, components?: ActionRowBuilder[]): void;
-
-declare const Assertions$2_componentsValidator: typeof componentsValidator;
-declare const Assertions$2_titleValidator: typeof titleValidator;
-declare namespace Assertions$2 {
- export {
- Assertions$2_componentsValidator as componentsValidator,
- Assertions$2_titleValidator as titleValidator,
- validateRequiredParameters$2 as validateRequiredParameters,
- };
-}
-
-/**
- * This mixin holds name and description symbols for slash commands.
- */
-declare class SharedNameAndDescription {
- /**
- * The name of this command.
- */
- readonly name: string;
- /**
- * The name localizations of this command.
- */
- readonly name_localizations?: LocalizationMap;
- /**
- * The description of this command.
- */
- readonly description: string;
- /**
- * The description localizations of this command.
- */
- readonly description_localizations?: LocalizationMap;
- /**
- * Sets the name of this command.
- *
- * @param name - The name to use
- */
- setName(name: string): this;
- /**
- * Sets the description of this command.
- *
- * @param description - The description to use
- */
- setDescription(description: string): this;
- /**
- * Sets a name localization for this command.
- *
- * @param locale - The locale to set
- * @param localizedName - The localized name for the given `locale`
- */
- setNameLocalization(locale: LocaleString, localizedName: string | null): this;
- /**
- * Sets the name localizations for this command.
- *
- * @param localizedNames - The object of localized names to set
- */
- setNameLocalizations(localizedNames: LocalizationMap | null): this;
- /**
- * Sets a description localization for this command.
- *
- * @param locale - The locale to set
- * @param localizedDescription - The localized description for the given locale
- */
- setDescriptionLocalization(locale: LocaleString, localizedDescription: string | null): this;
- /**
- * Sets the description localizations for this command.
- *
- * @param localizedDescriptions - The object of localized descriptions to set
- */
- setDescriptionLocalizations(localizedDescriptions: LocalizationMap | null): this;
-}
-
-/**
- * The base application command option builder that contains common symbols for application command builders.
- */
-declare abstract class ApplicationCommandOptionBase extends SharedNameAndDescription {
- /**
- * The type of this option.
- */
- abstract readonly type: ApplicationCommandOptionType;
- /**
- * Whether this option is required.
- *
- * @defaultValue `false`
- */
- readonly required: boolean;
- /**
- * Sets whether this option is required.
- *
- * @param required - Whether this option should be required
- */
- setRequired(required: boolean): this;
- /**
- * Serializes this builder to API-compatible JSON data.
- *
- * @remarks
- * This method runs validations on the data before serializing it.
- * As such, it may throw an error if the data is invalid.
- */
- abstract toJSON(): APIApplicationCommandBasicOption;
- /**
- * This method runs required validators on this builder.
- */
- protected runRequiredValidations(): void;
-}
-
-/**
- * A slash command attachment option.
- */
-declare class SlashCommandAttachmentOption extends ApplicationCommandOptionBase {
- /**
- * The type of this option.
- */
- readonly type: ApplicationCommandOptionType.Attachment;
- /**
- * {@inheritDoc ApplicationCommandOptionBase.toJSON}
- */
- toJSON(): APIApplicationCommandAttachmentOption;
-}
-
-/**
- * A slash command boolean option.
- */
-declare class SlashCommandBooleanOption extends ApplicationCommandOptionBase {
- /**
- * The type of this option.
- */
- readonly type: ApplicationCommandOptionType.Boolean;
- /**
- * {@inheritDoc ApplicationCommandOptionBase.toJSON}
- */
- toJSON(): APIApplicationCommandBooleanOption;
-}
-
-/**
- * The allowed channel types used for a channel option in a slash command builder.
- *
- * @privateRemarks This can't be dynamic because const enums are erased at runtime.
- * @internal
- */
-declare const allowedChannelTypes: readonly [ChannelType.GuildText, ChannelType.GuildVoice, ChannelType.GuildCategory, ChannelType.GuildAnnouncement, ChannelType.AnnouncementThread, ChannelType.PublicThread, ChannelType.PrivateThread, ChannelType.GuildStageVoice, ChannelType.GuildForum, ChannelType.GuildMedia];
-/**
- * The type of allowed channel types used for a channel option.
- */
-type ApplicationCommandOptionAllowedChannelTypes = (typeof allowedChannelTypes)[number];
-/**
- * This mixin holds channel type symbols used for options.
- */
-declare class ApplicationCommandOptionChannelTypesMixin {
- /**
- * The channel types of this option.
- */
- readonly channel_types?: ApplicationCommandOptionAllowedChannelTypes[];
- /**
- * Adds channel types to this option.
- *
- * @param channelTypes - The channel types
- */
- addChannelTypes(...channelTypes: ApplicationCommandOptionAllowedChannelTypes[]): this;
-}
-
-/**
- * A slash command channel option.
- */
-declare class SlashCommandChannelOption extends ApplicationCommandOptionBase {
- /**
- * The type of this option.
- */
- readonly type: ApplicationCommandOptionType.Channel;
- /**
- * {@inheritDoc ApplicationCommandOptionBase.toJSON}
- */
- toJSON(): APIApplicationCommandChannelOption;
-}
-interface SlashCommandChannelOption extends ApplicationCommandOptionChannelTypesMixin {
-}
-
-/**
- * This mixin holds minimum and maximum symbols used for options.
- */
-declare abstract class ApplicationCommandNumericOptionMinMaxValueMixin {
- /**
- * The maximum value of this option.
- */
- readonly max_value?: number;
- /**
- * The minimum value of this option.
- */
- readonly min_value?: number;
- /**
- * Sets the maximum number value of this option.
- *
- * @param max - The maximum value this option can be
- */
- abstract setMaxValue(max: number): this;
- /**
- * Sets the minimum number value of this option.
- *
- * @param min - The minimum value this option can be
- */
- abstract setMinValue(min: number): this;
-}
-
-/**
- * This mixin holds choices and autocomplete symbols used for options.
- */
-declare class ApplicationCommandOptionWithChoicesAndAutocompleteMixin {
- /**
- * The choices of this option.
- */
- readonly choices?: APIApplicationCommandOptionChoice[];
- /**
- * Whether this option utilizes autocomplete.
- */
- readonly autocomplete?: boolean;
- /**
- * The type of this option.
- *
- * @privateRemarks Since this is present and this is a mixin, this is needed.
- */
- readonly type: ApplicationCommandOptionType;
- /**
- * Adds multiple choices to this option.
- *
- * @param choices - The choices to add
- */
- addChoices(...choices: APIApplicationCommandOptionChoice[]): this;
- /**
- * Sets multiple choices for this option.
- *
- * @param choices - The choices to set
- */
- setChoices[]>(...choices: Input): this;
- /**
- * Whether this option uses autocomplete.
- *
- * @param autocomplete - Whether this option should use autocomplete
- */
- setAutocomplete(autocomplete: boolean): this;
-}
-
-/**
- * A slash command integer option.
- */
-declare class SlashCommandIntegerOption extends ApplicationCommandOptionBase implements ApplicationCommandNumericOptionMinMaxValueMixin {
- /**
- * The type of this option.
- */
- readonly type: ApplicationCommandOptionType.Integer;
- /**
- * {@inheritDoc ApplicationCommandNumericOptionMinMaxValueMixin.setMaxValue}
- */
- setMaxValue(max: number): this;
- /**
- * {@inheritDoc ApplicationCommandNumericOptionMinMaxValueMixin.setMinValue}
- */
- setMinValue(min: number): this;
- /**
- * {@inheritDoc ApplicationCommandOptionBase.toJSON}
- */
- toJSON(): APIApplicationCommandIntegerOption;
-}
-interface SlashCommandIntegerOption extends ApplicationCommandNumericOptionMinMaxValueMixin, ApplicationCommandOptionWithChoicesAndAutocompleteMixin {
-}
-
-/**
- * A slash command mentionable option.
- */
-declare class SlashCommandMentionableOption extends ApplicationCommandOptionBase {
- /**
- * The type of this option.
- */
- readonly type: ApplicationCommandOptionType.Mentionable;
- /**
- * {@inheritDoc ApplicationCommandOptionBase.toJSON}
- */
- toJSON(): APIApplicationCommandMentionableOption;
-}
-
-/**
- * A slash command number option.
- */
-declare class SlashCommandNumberOption extends ApplicationCommandOptionBase implements ApplicationCommandNumericOptionMinMaxValueMixin {
- /**
- * The type of this option.
- */
- readonly type: ApplicationCommandOptionType.Number;
- /**
- * {@inheritDoc ApplicationCommandNumericOptionMinMaxValueMixin.setMaxValue}
- */
- setMaxValue(max: number): this;
- /**
- * {@inheritDoc ApplicationCommandNumericOptionMinMaxValueMixin.setMinValue}
- */
- setMinValue(min: number): this;
- /**
- * {@inheritDoc ApplicationCommandOptionBase.toJSON}
- */
- toJSON(): APIApplicationCommandNumberOption;
-}
-interface SlashCommandNumberOption extends ApplicationCommandNumericOptionMinMaxValueMixin, ApplicationCommandOptionWithChoicesAndAutocompleteMixin {
-}
-
-/**
- * A slash command role option.
- */
-declare class SlashCommandRoleOption extends ApplicationCommandOptionBase {
- /**
- * The type of this option.
- */
- readonly type: ApplicationCommandOptionType.Role;
- /**
- * {@inheritDoc ApplicationCommandOptionBase.toJSON}
- */
- toJSON(): APIApplicationCommandRoleOption;
-}
-
-/**
- * A slash command string option.
- */
-declare class SlashCommandStringOption extends ApplicationCommandOptionBase {
- /**
- * The type of this option.
- */
- readonly type: ApplicationCommandOptionType.String;
- /**
- * The maximum length of this option.
- */
- readonly max_length?: number;
- /**
- * The minimum length of this option.
- */
- readonly min_length?: number;
- /**
- * Sets the maximum length of this string option.
- *
- * @param max - The maximum length this option can be
- */
- setMaxLength(max: number): this;
- /**
- * Sets the minimum length of this string option.
- *
- * @param min - The minimum length this option can be
- */
- setMinLength(min: number): this;
- /**
- * {@inheritDoc ApplicationCommandOptionBase.toJSON}
- */
- toJSON(): APIApplicationCommandStringOption;
-}
-interface SlashCommandStringOption extends ApplicationCommandOptionWithChoicesAndAutocompleteMixin {
-}
-
-/**
- * A slash command user option.
- */
-declare class SlashCommandUserOption extends ApplicationCommandOptionBase {
- /**
- * The type of this option.
- */
- readonly type: ApplicationCommandOptionType.User;
- /**
- * {@inheritDoc ApplicationCommandOptionBase.toJSON}
- */
- toJSON(): APIApplicationCommandUserOption;
-}
-
-/**
- * This mixin holds symbols that can be shared in slash command options.
- *
- * @typeParam ShouldOmitSubcommandFunctions - Whether to omit subcommand functions.
- */
-declare class SharedSlashCommandOptions {
- readonly options: ToAPIApplicationCommandOptions[];
- /**
- * Adds a boolean option.
- *
- * @param input - A function that returns an option builder or an already built builder
- */
- addBooleanOption(input: SlashCommandBooleanOption | ((builder: SlashCommandBooleanOption) => SlashCommandBooleanOption)): ShouldOmitSubcommandFunctions extends true ? Omit : this;
- /**
- * Adds a user option.
- *
- * @param input - A function that returns an option builder or an already built builder
- */
- addUserOption(input: SlashCommandUserOption | ((builder: SlashCommandUserOption) => SlashCommandUserOption)): ShouldOmitSubcommandFunctions extends true ? Omit : this;
- /**
- * Adds a channel option.
- *
- * @param input - A function that returns an option builder or an already built builder
- */
- addChannelOption(input: SlashCommandChannelOption | ((builder: SlashCommandChannelOption) => SlashCommandChannelOption)): ShouldOmitSubcommandFunctions extends true ? Omit : this;
- /**
- * Adds a role option.
- *
- * @param input - A function that returns an option builder or an already built builder
- */
- addRoleOption(input: SlashCommandRoleOption | ((builder: SlashCommandRoleOption) => SlashCommandRoleOption)): ShouldOmitSubcommandFunctions extends true ? Omit : this;
- /**
- * Adds an attachment option.
- *
- * @param input - A function that returns an option builder or an already built builder
- */
- addAttachmentOption(input: SlashCommandAttachmentOption | ((builder: SlashCommandAttachmentOption) => SlashCommandAttachmentOption)): ShouldOmitSubcommandFunctions extends true ? Omit : this;
- /**
- * Adds a mentionable option.
- *
- * @param input - A function that returns an option builder or an already built builder
- */
- addMentionableOption(input: SlashCommandMentionableOption | ((builder: SlashCommandMentionableOption) => SlashCommandMentionableOption)): ShouldOmitSubcommandFunctions extends true ? Omit : this;
- /**
- * Adds a string option.
- *
- * @param input - A function that returns an option builder or an already built builder
- */
- addStringOption(input: Omit | Omit | SlashCommandStringOption | ((builder: SlashCommandStringOption) => Omit | Omit | SlashCommandStringOption)): ShouldOmitSubcommandFunctions extends true ? Omit : this;
- /**
- * Adds an integer option.
- *
- * @param input - A function that returns an option builder or an already built builder
- */
- addIntegerOption(input: Omit | Omit | SlashCommandIntegerOption | ((builder: SlashCommandIntegerOption) => Omit | Omit | SlashCommandIntegerOption)): ShouldOmitSubcommandFunctions extends true ? Omit : this;
- /**
- * Adds a number option.
- *
- * @param input - A function that returns an option builder or an already built builder
- */
- addNumberOption(input: Omit | Omit | SlashCommandNumberOption | ((builder: SlashCommandNumberOption) => Omit | Omit | SlashCommandNumberOption)): ShouldOmitSubcommandFunctions extends true ? Omit : this;
- /**
- * Where the actual adding magic happens. ✨
- *
- * @param input - The input. What else?
- * @param Instance - The instance of whatever is being added
- * @internal
- */
- private _sharedAddOptionMethod;
-}
-
-/**
- * Represents a folder for subcommands.
- *
- * @see {@link https://discord.com/developers/docs/interactions/application-commands#subcommands-and-subcommand-groups}
- */
-declare class SlashCommandSubcommandGroupBuilder implements ToAPIApplicationCommandOptions {
- /**
- * The name of this subcommand group.
- */
- readonly name: string;
- /**
- * The description of this subcommand group.
- */
- readonly description: string;
- /**
- * The subcommands within this subcommand group.
- */
- readonly options: SlashCommandSubcommandBuilder[];
- /**
- * Adds a new subcommand to this group.
- *
- * @param input - A function that returns a subcommand builder or an already built builder
- */
- addSubcommand(input: SlashCommandSubcommandBuilder | ((subcommandGroup: SlashCommandSubcommandBuilder) => SlashCommandSubcommandBuilder)): this;
- /**
- * Serializes this builder to API-compatible JSON data.
- *
- * @remarks
- * This method runs validations on the data before serializing it.
- * As such, it may throw an error if the data is invalid.
- */
- toJSON(): APIApplicationCommandSubcommandGroupOption;
-}
-interface SlashCommandSubcommandGroupBuilder extends SharedNameAndDescription {
-}
-/**
- * A builder that creates API-compatible JSON data for slash command subcommands.
- *
- * @see {@link https://discord.com/developers/docs/interactions/application-commands#subcommands-and-subcommand-groups}
- */
-declare class SlashCommandSubcommandBuilder implements ToAPIApplicationCommandOptions {
- /**
- * The name of this subcommand.
- */
- readonly name: string;
- /**
- * The description of this subcommand.
- */
- readonly description: string;
- /**
- * The options within this subcommand.
- */
- readonly options: ApplicationCommandOptionBase[];
- /**
- * Serializes this builder to API-compatible JSON data.
- *
- * @remarks
- * This method runs validations on the data before serializing it.
- * As such, it may throw an error if the data is invalid.
- */
- toJSON(): APIApplicationCommandSubcommandOption;
-}
-interface SlashCommandSubcommandBuilder extends SharedNameAndDescription, SharedSlashCommandOptions {
-}
-
-/**
- * A builder that creates API-compatible JSON data for slash commands.
- */
-declare class SlashCommandBuilder {
- /**
- * The name of this command.
- */
- readonly name: string;
- /**
- * The name localizations of this command.
- */
- readonly name_localizations?: LocalizationMap;
- /**
- * The description of this command.
- */
- readonly description: string;
- /**
- * The description localizations of this command.
- */
- readonly description_localizations?: LocalizationMap;
- /**
- * The options of this command.
- */
- readonly options: ToAPIApplicationCommandOptions[];
- /**
- * Whether this command is enabled by default when the application is added to a guild.
- *
- * @deprecated Use {@link ContextMenuCommandBuilder.setDefaultMemberPermissions} or {@link ContextMenuCommandBuilder.setDMPermission} instead.
- */
- readonly default_permission: boolean | undefined;
- /**
- * The set of permissions represented as a bit set for the command.
- */
- readonly default_member_permissions: Permissions | null | undefined;
- /**
- * Indicates whether the command is available in direct messages with the application.
- *
- * @remarks
- * By default, commands are visible. This property is only for global commands.
- */
- readonly dm_permission: boolean | undefined;
- /**
- * Whether this command is NSFW.
- */
- readonly nsfw: boolean | undefined;
- /**
- * Sets whether the command is enabled by default when the application is added to a guild.
- *
- * @remarks
- * If set to `false`, you will have to later `PUT` the permissions for this command.
- * @param value - Whether or not to enable this command by default
- * @see {@link https://discord.com/developers/docs/interactions/application-commands#permissions}
- * @deprecated Use {@link SlashCommandBuilder.setDefaultMemberPermissions} or {@link SlashCommandBuilder.setDMPermission} instead.
- */
- setDefaultPermission(value: boolean): this;
- /**
- * Sets the default permissions a member should have in order to run the command.
- *
- * @remarks
- * You can set this to `'0'` to disable the command by default.
- * @param permissions - The permissions bit field to set
- * @see {@link https://discord.com/developers/docs/interactions/application-commands#permissions}
- */
- setDefaultMemberPermissions(permissions: Permissions | bigint | number | null | undefined): this;
- /**
- * Sets if the command is available in direct messages with the application.
- *
- * @remarks
- * By default, commands are visible. This method is only for global commands.
- * @param enabled - Whether the command should be enabled in direct messages
- * @see {@link https://discord.com/developers/docs/interactions/application-commands#permissions}
- */
- setDMPermission(enabled: boolean | null | undefined): this;
- /**
- * Sets whether this command is NSFW.
- *
- * @param nsfw - Whether this command is NSFW
- */
- setNSFW(nsfw?: boolean): this;
- /**
- * Adds a new subcommand group to this command.
- *
- * @param input - A function that returns a subcommand group builder or an already built builder
- */
- addSubcommandGroup(input: SlashCommandSubcommandGroupBuilder | ((subcommandGroup: SlashCommandSubcommandGroupBuilder) => SlashCommandSubcommandGroupBuilder)): SlashCommandSubcommandsOnlyBuilder;
- /**
- * Adds a new subcommand to this command.
- *
- * @param input - A function that returns a subcommand builder or an already built builder
- */
- addSubcommand(input: SlashCommandSubcommandBuilder | ((subcommandGroup: SlashCommandSubcommandBuilder) => SlashCommandSubcommandBuilder)): SlashCommandSubcommandsOnlyBuilder;
- /**
- * Serializes this builder to API-compatible JSON data.
- *
- * @remarks
- * This method runs validations on the data before serializing it.
- * As such, it may throw an error if the data is invalid.
- */
- toJSON(): RESTPostAPIChatInputApplicationCommandsJSONBody;
-}
-interface SlashCommandBuilder extends SharedNameAndDescription, SharedSlashCommandOptions {
-}
-/**
- * An interface specifically for slash command subcommands.
- */
-interface SlashCommandSubcommandsOnlyBuilder extends Omit> {
-}
-/**
- * An interface specifically for slash command options.
- */
-interface SlashCommandOptionsOnlyBuilder extends SharedNameAndDescription, SharedSlashCommandOptions, Pick {
-}
-/**
- * An interface that ensures the `toJSON()` call will return something
- * that can be serialized into API-compatible data.
- */
-interface ToAPIApplicationCommandOptions {
- toJSON(): APIApplicationCommandOption;
-}
-
-declare function validateName$1(name: unknown): asserts name is string;
-declare function validateDescription(description: unknown): asserts description is string;
-declare function validateLocale(locale: unknown): Locale;
-declare function validateMaxOptionsLength(options: unknown): asserts options is ToAPIApplicationCommandOptions[];
-declare function validateRequiredParameters$1(name: string, description: string, options: ToAPIApplicationCommandOptions[]): void;
-declare function validateDefaultPermission$1(value: unknown): asserts value is boolean;
-declare function validateRequired(required: unknown): asserts required is boolean;
-declare function validateChoicesLength(amountAdding: number, choices?: APIApplicationCommandOptionChoice[]): void;
-declare function assertReturnOfBuilder(input: unknown, ExpectedInstanceOf: new () => ReturnType): asserts input is ReturnType;
-declare const localizationMapPredicate: _sapphire_shapeshift.UnionValidator<_sapphire_shapeshift.UndefinedToOptional>> | null | undefined>;
-declare function validateLocalizationMap(value: unknown): asserts value is LocalizationMap;
-declare function validateDMPermission$1(value: unknown): asserts value is boolean | null | undefined;
-declare function validateDefaultMemberPermissions$1(permissions: unknown): string | null | undefined;
-declare function validateNSFW(value: unknown): asserts value is boolean;
-
-declare const Assertions$1_assertReturnOfBuilder: typeof assertReturnOfBuilder;
-declare const Assertions$1_localizationMapPredicate: typeof localizationMapPredicate;
-declare const Assertions$1_validateChoicesLength: typeof validateChoicesLength;
-declare const Assertions$1_validateDescription: typeof validateDescription;
-declare const Assertions$1_validateLocale: typeof validateLocale;
-declare const Assertions$1_validateLocalizationMap: typeof validateLocalizationMap;
-declare const Assertions$1_validateMaxOptionsLength: typeof validateMaxOptionsLength;
-declare const Assertions$1_validateNSFW: typeof validateNSFW;
-declare const Assertions$1_validateRequired: typeof validateRequired;
-declare namespace Assertions$1 {
- export {
- Assertions$1_assertReturnOfBuilder as assertReturnOfBuilder,
- Assertions$1_localizationMapPredicate as localizationMapPredicate,
- Assertions$1_validateChoicesLength as validateChoicesLength,
- validateDMPermission$1 as validateDMPermission,
- validateDefaultMemberPermissions$1 as validateDefaultMemberPermissions,
- validateDefaultPermission$1 as validateDefaultPermission,
- Assertions$1_validateDescription as validateDescription,
- Assertions$1_validateLocale as validateLocale,
- Assertions$1_validateLocalizationMap as validateLocalizationMap,
- Assertions$1_validateMaxOptionsLength as validateMaxOptionsLength,
- Assertions$1_validateNSFW as validateNSFW,
- validateName$1 as validateName,
- Assertions$1_validateRequired as validateRequired,
- validateRequiredParameters$1 as validateRequiredParameters,
- };
-}
-
-/**
- * The type a context menu command can be.
- */
-type ContextMenuCommandType = ApplicationCommandType.Message | ApplicationCommandType.User;
-/**
- * A builder that creates API-compatible JSON data for context menu commands.
- */
-declare class ContextMenuCommandBuilder {
- /**
- * The name of this command.
- */
- readonly name: string;
- /**
- * The name localizations of this command.
- */
- readonly name_localizations?: LocalizationMap;
- /**
- * The type of this command.
- */
- readonly type: ContextMenuCommandType;
- /**
- * Whether this command is enabled by default when the application is added to a guild.
- *
- * @deprecated Use {@link ContextMenuCommandBuilder.setDefaultMemberPermissions} or {@link ContextMenuCommandBuilder.setDMPermission} instead.
- */
- readonly default_permission: boolean | undefined;
- /**
- * The set of permissions represented as a bit set for the command.
- */
- readonly default_member_permissions: Permissions | null | undefined;
- /**
- * Indicates whether the command is available in direct messages with the application.
- *
- * @remarks
- * By default, commands are visible. This property is only for global commands.
- */
- readonly dm_permission: boolean | undefined;
- /**
- * Sets the name of this command.
- *
- * @param name - The name to use
- */
- setName(name: string): this;
- /**
- * Sets the type of this command.
- *
- * @param type - The type to use
- */
- setType(type: ContextMenuCommandType): this;
- /**
- * Sets whether the command is enabled by default when the application is added to a guild.
- *
- * @remarks
- * If set to `false`, you will have to later `PUT` the permissions for this command.
- * @param value - Whether to enable this command by default
- * @see {@link https://discord.com/developers/docs/interactions/application-commands#permissions}
- * @deprecated Use {@link ContextMenuCommandBuilder.setDefaultMemberPermissions} or {@link ContextMenuCommandBuilder.setDMPermission} instead.
- */
- setDefaultPermission(value: boolean): this;
- /**
- * Sets the default permissions a member should have in order to run this command.
- *
- * @remarks
- * You can set this to `'0'` to disable the command by default.
- * @param permissions - The permissions bit field to set
- * @see {@link https://discord.com/developers/docs/interactions/application-commands#permissions}
- */
- setDefaultMemberPermissions(permissions: Permissions | bigint | number | null | undefined): this;
- /**
- * Sets if the command is available in direct messages with the application.
- *
- * @remarks
- * By default, commands are visible. This method is only for global commands.
- * @param enabled - Whether the command should be enabled in direct messages
- * @see {@link https://discord.com/developers/docs/interactions/application-commands#permissions}
- */
- setDMPermission(enabled: boolean | null | undefined): this;
- /**
- * Sets a name localization for this command.
- *
- * @param locale - The locale to set
- * @param localizedName - The localized name for the given `locale`
- */
- setNameLocalization(locale: LocaleString, localizedName: string | null): this;
- /**
- * Sets the name localizations for this command.
- *
- * @param localizedNames - The object of localized names to set
- */
- setNameLocalizations(localizedNames: LocalizationMap | null): this;
- /**
- * Serializes this builder to API-compatible JSON data.
- *
- * @remarks
- * This method runs validations on the data before serializing it.
- * As such, it may throw an error if the data is invalid.
- */
- toJSON(): RESTPostAPIContextMenuApplicationCommandsJSONBody;
-}
-
-declare function validateDefaultPermission(value: unknown): asserts value is boolean;
-declare function validateName(name: unknown): asserts name is string;
-declare function validateType(type: unknown): asserts type is ContextMenuCommandType;
-declare function validateRequiredParameters(name: string, type: number): void;
-declare function validateDMPermission(value: unknown): asserts value is boolean | null | undefined;
-declare function validateDefaultMemberPermissions(permissions: unknown): string | null | undefined;
-
-declare const Assertions_validateDMPermission: typeof validateDMPermission;
-declare const Assertions_validateDefaultMemberPermissions: typeof validateDefaultMemberPermissions;
-declare const Assertions_validateDefaultPermission: typeof validateDefaultPermission;
-declare const Assertions_validateName: typeof validateName;
-declare const Assertions_validateRequiredParameters: typeof validateRequiredParameters;
-declare const Assertions_validateType: typeof validateType;
-declare namespace Assertions {
- export {
- Assertions_validateDMPermission as validateDMPermission,
- Assertions_validateDefaultMemberPermissions as validateDefaultMemberPermissions,
- Assertions_validateDefaultPermission as validateDefaultPermission,
- Assertions_validateName as validateName,
- Assertions_validateRequiredParameters as validateRequiredParameters,
- Assertions_validateType as validateType,
- };
-}
-
-/**
- * Calculates the length of the embed.
- *
- * @param data - The embed data to check
- */
-declare function embedLength(data: APIEmbed): number;
-
-/**
- * Enables validators.
- *
- * @returns Whether validation is occurring.
- */
-declare function enableValidators(): boolean;
-/**
- * Disables validators.
- *
- * @returns Whether validation is occurring.
- */
-declare function disableValidators(): boolean;
-/**
- * Checks whether validation is occurring.
- */
-declare function isValidationEnabled(): boolean;
-
-/**
- * The {@link https://github.com/discordjs/discord.js/blob/main/packages/builders#readme | @discordjs/builders} version
- * that you are currently using.
- *
- * @privateRemarks This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild.
- */
-declare const version: string;
-
-export { ActionRowBuilder, AnyAPIActionRowComponent, AnyComponentBuilder, ApplicationCommandNumericOptionMinMaxValueMixin, ApplicationCommandOptionAllowedChannelTypes, ApplicationCommandOptionBase, ApplicationCommandOptionChannelTypesMixin, ApplicationCommandOptionWithChoicesAndAutocompleteMixin, BaseSelectMenuBuilder, ButtonBuilder, ChannelSelectMenuBuilder, Assertions$4 as ComponentAssertions, ComponentBuilder, Assertions as ContextMenuCommandAssertions, ContextMenuCommandBuilder, ContextMenuCommandType, Assertions$5 as EmbedAssertions, EmbedAuthorData, EmbedAuthorOptions, EmbedBuilder, EmbedFooterData, EmbedFooterOptions, EmbedImageData, IconData, MappedComponentTypes, MentionableSelectMenuBuilder, MessageActionRowComponentBuilder, MessageComponentBuilder, ModalActionRowComponentBuilder, Assertions$2 as ModalAssertions, ModalBuilder, ModalComponentBuilder, RGBTuple, RestOrArray, RoleSelectMenuBuilder, StringSelectMenuBuilder as SelectMenuBuilder, StringSelectMenuOptionBuilder as SelectMenuOptionBuilder, SharedNameAndDescription, SharedSlashCommandOptions, Assertions$1 as SlashCommandAssertions, SlashCommandAttachmentOption, SlashCommandBooleanOption, SlashCommandBuilder, SlashCommandChannelOption, SlashCommandIntegerOption, SlashCommandMentionableOption, SlashCommandNumberOption, SlashCommandOptionsOnlyBuilder, SlashCommandRoleOption, SlashCommandStringOption, SlashCommandSubcommandBuilder, SlashCommandSubcommandGroupBuilder, SlashCommandSubcommandsOnlyBuilder, SlashCommandUserOption, StringSelectMenuBuilder, StringSelectMenuOptionBuilder, Assertions$3 as TextInputAssertions, TextInputBuilder, ToAPIApplicationCommandOptions, UserSelectMenuBuilder, createComponentBuilder, disableValidators, embedLength, enableValidators, isValidationEnabled, normalizeArray, version };
diff --git a/node_modules/@discordjs/builders/dist/index.d.ts b/node_modules/@discordjs/builders/dist/index.d.ts
deleted file mode 100644
index 0280fc5..0000000
--- a/node_modules/@discordjs/builders/dist/index.d.ts
+++ /dev/null
@@ -1,2008 +0,0 @@
-import * as _sapphire_shapeshift from '@sapphire/shapeshift';
-import { APIEmbedField, APIEmbedAuthor, APIEmbedFooter, APIEmbedImage, APIEmbed, APISelectMenuOption, APIMessageComponentEmoji, ButtonStyle, ChannelType, APIActionRowComponent, APIActionRowComponentTypes, APIBaseComponent, ComponentType, APIButtonComponent, APISelectMenuComponent, APIChannelSelectComponent, Snowflake, APIMentionableSelectComponent, APISelectMenuDefaultValue, SelectMenuDefaultValueType, APIRoleSelectComponent, APIStringSelectComponent, APIUserSelectComponent, APITextInputComponent, TextInputStyle, APIMessageActionRowComponent, APIModalActionRowComponent, APIModalComponent, APIMessageComponent, APIModalInteractionResponseCallbackData, LocalizationMap, LocaleString, ApplicationCommandOptionType, APIApplicationCommandBasicOption, APIApplicationCommandAttachmentOption, APIApplicationCommandBooleanOption, APIApplicationCommandChannelOption, APIApplicationCommandOptionChoice, APIApplicationCommandIntegerOption, APIApplicationCommandMentionableOption, APIApplicationCommandNumberOption, APIApplicationCommandRoleOption, APIApplicationCommandStringOption, APIApplicationCommandUserOption, APIApplicationCommandSubcommandGroupOption, APIApplicationCommandSubcommandOption, Permissions, RESTPostAPIChatInputApplicationCommandsJSONBody, APIApplicationCommandOption, Locale, ApplicationCommandType, RESTPostAPIContextMenuApplicationCommandsJSONBody } from 'discord-api-types/v10';
-export * from '@discordjs/formatters';
-import { JSONEncodable, Equatable } from '@discordjs/util';
-
-declare const fieldNamePredicate: _sapphire_shapeshift.StringValidator;
-declare const fieldValuePredicate: _sapphire_shapeshift.StringValidator;
-declare const fieldInlinePredicate: _sapphire_shapeshift.UnionValidator;
-declare const embedFieldPredicate: _sapphire_shapeshift.ObjectValidator<{
- name: string;
- value: string;
- inline: boolean | undefined;
-}, _sapphire_shapeshift.UndefinedToOptional<{
- name: string;
- value: string;
- inline: boolean | undefined;
-}>>;
-declare const embedFieldsArrayPredicate: _sapphire_shapeshift.ArrayValidator<_sapphire_shapeshift.UndefinedToOptional<{
- name: string;
- value: string;
- inline: boolean | undefined;
-}>[], _sapphire_shapeshift.UndefinedToOptional<{
- name: string;
- value: string;
- inline: boolean | undefined;
-}>>;
-declare const fieldLengthPredicate: _sapphire_shapeshift.NumberValidator;
-declare function validateFieldLength(amountAdding: number, fields?: APIEmbedField[]): void;
-declare const authorNamePredicate: _sapphire_shapeshift.UnionValidator;
-declare const imageURLPredicate: _sapphire_shapeshift.UnionValidator;
-declare const urlPredicate: _sapphire_shapeshift.UnionValidator;
-declare const embedAuthorPredicate: _sapphire_shapeshift.ObjectValidator<{
- name: string | null;
- iconURL: string | null | undefined;
- url: string | null | undefined;
-}, _sapphire_shapeshift.UndefinedToOptional<{
- name: string | null;
- iconURL: string | null | undefined;
- url: string | null | undefined;
-}>>;
-declare const RGBPredicate: _sapphire_shapeshift.NumberValidator;
-declare const colorPredicate: _sapphire_shapeshift.UnionValidator;
-declare const descriptionPredicate: _sapphire_shapeshift.UnionValidator;
-declare const footerTextPredicate: _sapphire_shapeshift.UnionValidator;
-declare const embedFooterPredicate: _sapphire_shapeshift.ObjectValidator<{
- text: string | null;
- iconURL: string | null | undefined;
-}, _sapphire_shapeshift.UndefinedToOptional<{
- text: string | null;
- iconURL: string | null | undefined;
-}>>;
-declare const timestampPredicate: _sapphire_shapeshift.UnionValidator;
-declare const titlePredicate: _sapphire_shapeshift.UnionValidator;
-
-declare const Assertions$5_RGBPredicate: typeof RGBPredicate;
-declare const Assertions$5_authorNamePredicate: typeof authorNamePredicate;
-declare const Assertions$5_colorPredicate: typeof colorPredicate;
-declare const Assertions$5_descriptionPredicate: typeof descriptionPredicate;
-declare const Assertions$5_embedAuthorPredicate: typeof embedAuthorPredicate;
-declare const Assertions$5_embedFieldPredicate: typeof embedFieldPredicate;
-declare const Assertions$5_embedFieldsArrayPredicate: typeof embedFieldsArrayPredicate;
-declare const Assertions$5_embedFooterPredicate: typeof embedFooterPredicate;
-declare const Assertions$5_fieldInlinePredicate: typeof fieldInlinePredicate;
-declare const Assertions$5_fieldLengthPredicate: typeof fieldLengthPredicate;
-declare const Assertions$5_fieldNamePredicate: typeof fieldNamePredicate;
-declare const Assertions$5_fieldValuePredicate: typeof fieldValuePredicate;
-declare const Assertions$5_footerTextPredicate: typeof footerTextPredicate;
-declare const Assertions$5_imageURLPredicate: typeof imageURLPredicate;
-declare const Assertions$5_timestampPredicate: typeof timestampPredicate;
-declare const Assertions$5_titlePredicate: typeof titlePredicate;
-declare const Assertions$5_urlPredicate: typeof urlPredicate;
-declare const Assertions$5_validateFieldLength: typeof validateFieldLength;
-declare namespace Assertions$5 {
- export {
- Assertions$5_RGBPredicate as RGBPredicate,
- Assertions$5_authorNamePredicate as authorNamePredicate,
- Assertions$5_colorPredicate as colorPredicate,
- Assertions$5_descriptionPredicate as descriptionPredicate,
- Assertions$5_embedAuthorPredicate as embedAuthorPredicate,
- Assertions$5_embedFieldPredicate as embedFieldPredicate,
- Assertions$5_embedFieldsArrayPredicate as embedFieldsArrayPredicate,
- Assertions$5_embedFooterPredicate as embedFooterPredicate,
- Assertions$5_fieldInlinePredicate as fieldInlinePredicate,
- Assertions$5_fieldLengthPredicate as fieldLengthPredicate,
- Assertions$5_fieldNamePredicate as fieldNamePredicate,
- Assertions$5_fieldValuePredicate as fieldValuePredicate,
- Assertions$5_footerTextPredicate as footerTextPredicate,
- Assertions$5_imageURLPredicate as imageURLPredicate,
- Assertions$5_timestampPredicate as timestampPredicate,
- Assertions$5_titlePredicate as titlePredicate,
- Assertions$5_urlPredicate as urlPredicate,
- Assertions$5_validateFieldLength as validateFieldLength,
- };
-}
-
-/**
- * Normalizes data that is a rest parameter or an array into an array with a depth of 1.
- *
- * @typeParam ItemType - The data that must satisfy {@link RestOrArray}.
- * @param arr - The (possibly variadic) data to normalize
- */
-declare function normalizeArray(arr: RestOrArray): ItemType[];
-/**
- * Represents data that may be an array or came from a rest parameter.
- *
- * @remarks
- * This type is used throughout builders to ensure both an array and variadic arguments
- * may be used. It is normalized with {@link normalizeArray}.
- */
-type RestOrArray = Type[] | [Type[]];
-
-/**
- * A tuple satisfying the RGB color model.
- *
- * @see {@link https://developer.mozilla.org/docs/Glossary/RGB}
- */
-type RGBTuple = [red: number, green: number, blue: number];
-/**
- * The base icon data typically used in payloads.
- */
-interface IconData {
- /**
- * The URL of the icon.
- */
- iconURL?: string;
- /**
- * The proxy URL of the icon.
- */
- proxyIconURL?: string;
-}
-/**
- * Represents the author data of an embed.
- */
-type EmbedAuthorData = IconData & Omit;
-/**
- * Represents the author options of an embed.
- */
-type EmbedAuthorOptions = Omit;
-/**
- * Represents the footer data of an embed.
- */
-type EmbedFooterData = IconData & Omit;
-/**
- * Represents the footer options of an embed.
- */
-type EmbedFooterOptions = Omit;
-/**
- * Represents the image data of an embed.
- */
-interface EmbedImageData extends Omit {
- /**
- * The proxy URL for the image.
- */
- proxyURL?: string;
-}
-/**
- * A builder that creates API-compatible JSON data for embeds.
- */
-declare class EmbedBuilder {
- /**
- * The API data associated with this embed.
- */
- readonly data: APIEmbed;
- /**
- * Creates a new embed from API data.
- *
- * @param data - The API data to create this embed with
- */
- constructor(data?: APIEmbed);
- /**
- * Appends fields to the embed.
- *
- * @remarks
- * This method accepts either an array of fields or a variable number of field parameters.
- * The maximum amount of fields that can be added is 25.
- * @example
- * Using an array:
- * ```ts
- * const fields: APIEmbedField[] = ...;
- * const embed = new EmbedBuilder()
- * .addFields(fields);
- * ```
- * @example
- * Using rest parameters (variadic):
- * ```ts
- * const embed = new EmbedBuilder()
- * .addFields(
- * { name: 'Field 1', value: 'Value 1' },
- * { name: 'Field 2', value: 'Value 2' },
- * );
- * ```
- * @param fields - The fields to add
- */
- addFields(...fields: RestOrArray): this;
- /**
- * Removes, replaces, or inserts fields for this embed.
- *
- * @remarks
- * This method behaves similarly
- * to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
- * The maximum amount of fields that can be added is 25.
- *
- * It's useful for modifying and adjusting order of the already-existing fields of an embed.
- * @example
- * Remove the first field:
- * ```ts
- * embed.spliceFields(0, 1);
- * ```
- * @example
- * Remove the first n fields:
- * ```ts
- * const n = 4;
- * embed.spliceFields(0, n);
- * ```
- * @example
- * Remove the last field:
- * ```ts
- * embed.spliceFields(-1, 1);
- * ```
- * @param index - The index to start at
- * @param deleteCount - The number of fields to remove
- * @param fields - The replacing field objects
- */
- spliceFields(index: number, deleteCount: number, ...fields: APIEmbedField[]): this;
- /**
- * Sets the fields for this embed.
- *
- * @remarks
- * This method is an alias for {@link EmbedBuilder.spliceFields}. More specifically,
- * it splices the entire array of fields, replacing them with the provided fields.
- *
- * You can set a maximum of 25 fields.
- * @param fields - The fields to set
- */
- setFields(...fields: RestOrArray): this;
- /**
- * Sets the author of this embed.
- *
- * @param options - The options to use
- */
- setAuthor(options: EmbedAuthorOptions | null): this;
- /**
- * Sets the color of this embed.
- *
- * @param color - The color to use
- */
- setColor(color: RGBTuple | number | null): this;
- /**
- * Sets the description of this embed.
- *
- * @param description - The description to use
- */
- setDescription(description: string | null): this;
- /**
- * Sets the footer of this embed.
- *
- * @param options - The footer to use
- */
- setFooter(options: EmbedFooterOptions | null): this;
- /**
- * Sets the image of this embed.
- *
- * @param url - The image URL to use
- */
- setImage(url: string | null): this;
- /**
- * Sets the thumbnail of this embed.
- *
- * @param url - The thumbnail URL to use
- */
- setThumbnail(url: string | null): this;
- /**
- * Sets the timestamp of this embed.
- *
- * @param timestamp - The timestamp or date to use
- */
- setTimestamp(timestamp?: Date | number | null): this;
- /**
- * Sets the title for this embed.
- *
- * @param title - The title to use
- */
- setTitle(title: string | null): this;
- /**
- * Sets the URL of this embed.
- *
- * @param url - The URL to use
- */
- setURL(url: string | null): this;
- /**
- * Serializes this builder to API-compatible JSON data.
- *
- * @remarks
- * This method runs validations on the data before serializing it.
- * As such, it may throw an error if the data is invalid.
- */
- toJSON(): APIEmbed;
-}
-
-/**
- * A builder that creates API-compatible JSON data for string select menu options.
- */
-declare class StringSelectMenuOptionBuilder implements JSONEncodable {
- data: Partial;
- /**
- * Creates a new string select menu option from API data.
- *
- * @param data - The API data to create this string select menu option with
- * @example
- * Creating a string select menu option from an API data object:
- * ```ts
- * const selectMenuOption = new SelectMenuOptionBuilder({
- * label: 'catchy label',
- * value: '1',
- * });
- * ```
- * @example
- * Creating a string select menu option using setters and API data:
- * ```ts
- * const selectMenuOption = new SelectMenuOptionBuilder({
- * default: true,
- * value: '1',
- * })
- * .setLabel('woah');
- * ```
- */
- constructor(data?: Partial);
- /**
- * Sets the label for this option.
- *
- * @param label - The label to use
- */
- setLabel(label: string): this;
- /**
- * Sets the value for this option.
- *
- * @param value - The value to use
- */
- setValue(value: string): this;
- /**
- * Sets the description for this option.
- *
- * @param description - The description to use
- */
- setDescription(description: string): this;
- /**
- * Sets whether this option is selected by default.
- *
- * @param isDefault - Whether this option is selected by default
- */
- setDefault(isDefault?: boolean): this;
- /**
- * Sets the emoji to display for this option.
- *
- * @param emoji - The emoji to use
- */
- setEmoji(emoji: APIMessageComponentEmoji): this;
- /**
- * {@inheritDoc BaseSelectMenuBuilder.toJSON}
- */
- toJSON(): APISelectMenuOption;
-}
-
-declare const customIdValidator: _sapphire_shapeshift.StringValidator;
-declare const emojiValidator: _sapphire_shapeshift.ObjectValidator<{
- name?: string | undefined;
- id?: string | undefined;
- animated?: boolean | undefined;
-}, _sapphire_shapeshift.UndefinedToOptional<{
- name?: string | undefined;
- id?: string | undefined;
- animated?: boolean | undefined;
-}>>;
-declare const disabledValidator: _sapphire_shapeshift.BooleanValidator;
-declare const buttonLabelValidator: _sapphire_shapeshift.StringValidator;
-declare const buttonStyleValidator: _sapphire_shapeshift.NativeEnumValidator;
-declare const placeholderValidator$1: _sapphire_shapeshift.StringValidator;
-declare const minMaxValidator: _sapphire_shapeshift.NumberValidator;
-declare const labelValueDescriptionValidator: _sapphire_shapeshift.StringValidator;
-declare const jsonOptionValidator: _sapphire_shapeshift.ObjectValidator<{
- label: string;
- value: string;
- description: string | undefined;
- emoji: _sapphire_shapeshift.UndefinedToOptional<{
- name?: string | undefined;
- id?: string | undefined;
- animated?: boolean | undefined;
- }> | undefined;
- default: boolean | undefined;
-}, _sapphire_shapeshift.UndefinedToOptional<{
- label: string;
- value: string;
- description: string | undefined;
- emoji: _sapphire_shapeshift.UndefinedToOptional<{
- name?: string | undefined;
- id?: string | undefined;
- animated?: boolean | undefined;
- }> | undefined;
- default: boolean | undefined;
-}>>;
-declare const optionValidator: _sapphire_shapeshift.InstanceValidator;
-declare const optionsValidator: _sapphire_shapeshift.ArrayValidator;
-declare const optionsLengthValidator: _sapphire_shapeshift.NumberValidator;
-declare function validateRequiredSelectMenuParameters(options: StringSelectMenuOptionBuilder[], customId?: string): void;
-declare const defaultValidator: _sapphire_shapeshift.BooleanValidator;
-declare function validateRequiredSelectMenuOptionParameters(label?: string, value?: string): void;
-declare const channelTypesValidator: _sapphire_shapeshift.ArrayValidator;
-declare const urlValidator: _sapphire_shapeshift.StringValidator;
-declare function validateRequiredButtonParameters(style?: ButtonStyle, label?: string, emoji?: APIMessageComponentEmoji, customId?: string, url?: string): void;
-
-declare const Assertions$4_buttonLabelValidator: typeof buttonLabelValidator;
-declare const Assertions$4_buttonStyleValidator: typeof buttonStyleValidator;
-declare const Assertions$4_channelTypesValidator: typeof channelTypesValidator;
-declare const Assertions$4_customIdValidator: typeof customIdValidator;
-declare const Assertions$4_defaultValidator: typeof defaultValidator;
-declare const Assertions$4_disabledValidator: typeof disabledValidator;
-declare const Assertions$4_emojiValidator: typeof emojiValidator;
-declare const Assertions$4_jsonOptionValidator: typeof jsonOptionValidator;
-declare const Assertions$4_labelValueDescriptionValidator: typeof labelValueDescriptionValidator;
-declare const Assertions$4_minMaxValidator: typeof minMaxValidator;
-declare const Assertions$4_optionValidator: typeof optionValidator;
-declare const Assertions$4_optionsLengthValidator: typeof optionsLengthValidator;
-declare const Assertions$4_optionsValidator: typeof optionsValidator;
-declare const Assertions$4_urlValidator: typeof urlValidator;
-declare const Assertions$4_validateRequiredButtonParameters: typeof validateRequiredButtonParameters;
-declare const Assertions$4_validateRequiredSelectMenuOptionParameters: typeof validateRequiredSelectMenuOptionParameters;
-declare const Assertions$4_validateRequiredSelectMenuParameters: typeof validateRequiredSelectMenuParameters;
-declare namespace Assertions$4 {
- export {
- Assertions$4_buttonLabelValidator as buttonLabelValidator,
- Assertions$4_buttonStyleValidator as buttonStyleValidator,
- Assertions$4_channelTypesValidator as channelTypesValidator,
- Assertions$4_customIdValidator as customIdValidator,
- Assertions$4_defaultValidator as defaultValidator,
- Assertions$4_disabledValidator as disabledValidator,
- Assertions$4_emojiValidator as emojiValidator,
- Assertions$4_jsonOptionValidator as jsonOptionValidator,
- Assertions$4_labelValueDescriptionValidator as labelValueDescriptionValidator,
- Assertions$4_minMaxValidator as minMaxValidator,
- Assertions$4_optionValidator as optionValidator,
- Assertions$4_optionsLengthValidator as optionsLengthValidator,
- Assertions$4_optionsValidator as optionsValidator,
- placeholderValidator$1 as placeholderValidator,
- Assertions$4_urlValidator as urlValidator,
- Assertions$4_validateRequiredButtonParameters as validateRequiredButtonParameters,
- Assertions$4_validateRequiredSelectMenuOptionParameters as validateRequiredSelectMenuOptionParameters,
- Assertions$4_validateRequiredSelectMenuParameters as validateRequiredSelectMenuParameters,
- };
-}
-
-/**
- * Any action row component data represented as an object.
- */
-type AnyAPIActionRowComponent = APIActionRowComponent | APIActionRowComponentTypes;
-/**
- * The base component builder that contains common symbols for all sorts of components.
- *
- * @typeParam DataType - The type of internal API data that is stored within the component
- */
-declare abstract class ComponentBuilder> = APIBaseComponent> implements JSONEncodable {
- /**
- * The API data associated with this component.
- */
- readonly data: Partial;
- /**
- * Serializes this builder to API-compatible JSON data.
- *
- * @remarks
- * This method runs validations on the data before serializing it.
- * As such, it may throw an error if the data is invalid.
- */
- abstract toJSON(): AnyAPIActionRowComponent;
- /**
- * Constructs a new kind of component.
- *
- * @param data - The data to construct a component out of
- */
- constructor(data: Partial);
-}
-
-/**
- * A builder that creates API-compatible JSON data for buttons.
- */
-declare class ButtonBuilder extends ComponentBuilder {
- /**
- * Creates a new button from API data.
- *
- * @param data - The API data to create this button with
- * @example
- * Creating a button from an API data object:
- * ```ts
- * const button = new ButtonBuilder({
- * custom_id: 'a cool button',
- * style: ButtonStyle.Primary,
- * label: 'Click Me',
- * emoji: {
- * name: 'smile',
- * id: '123456789012345678',
- * },
- * });
- * ```
- * @example
- * Creating a button using setters and API data:
- * ```ts
- * const button = new ButtonBuilder({
- * style: ButtonStyle.Secondary,
- * label: 'Click Me',
- * })
- * .setEmoji({ name: '🙂' })
- * .setCustomId('another cool button');
- * ```
- */
- constructor(data?: Partial);
- /**
- * Sets the style of this button.
- *
- * @param style - The style to use
- */
- setStyle(style: ButtonStyle): this;
- /**
- * Sets the URL for this button.
- *
- * @remarks
- * This method is only available to buttons using the `Link` button style.
- * Only three types of URL schemes are currently supported: `https://`, `http://`, and `discord://`.
- * @param url - The URL to use
- */
- setURL(url: string): this;
- /**
- * Sets the custom id for this button.
- *
- * @remarks
- * This method is only applicable to buttons that are not using the `Link` button style.
- * @param customId - The custom id to use
- */
- setCustomId(customId: string): this;
- /**
- * Sets the emoji to display on this button.
- *
- * @param emoji - The emoji to use
- */
- setEmoji(emoji: APIMessageComponentEmoji): this;
- /**
- * Sets whether this button is disabled.
- *
- * @param disabled - Whether to disable this button
- */
- setDisabled(disabled?: boolean): this;
- /**
- * Sets the label for this button.
- *
- * @param label - The label to use
- */
- setLabel(label: string): this;
- /**
- * {@inheritDoc ComponentBuilder.toJSON}
- */
- toJSON(): APIButtonComponent;
-}
-
-/**
- * The base select menu builder that contains common symbols for select menu builders.
- *
- * @typeParam SelectMenuType - The type of select menu this would be instantiated for.
- */
-declare abstract class BaseSelectMenuBuilder extends ComponentBuilder {
- /**
- * Sets the placeholder for this select menu.
- *
- * @param placeholder - The placeholder to use
- */
- setPlaceholder(placeholder: string): this;
- /**
- * Sets the minimum values that must be selected in the select menu.
- *
- * @param minValues - The minimum values that must be selected
- */
- setMinValues(minValues: number): this;
- /**
- * Sets the maximum values that must be selected in the select menu.
- *
- * @param maxValues - The maximum values that must be selected
- */
- setMaxValues(maxValues: number): this;
- /**
- * Sets the custom id for this select menu.
- *
- * @param customId - The custom id to use
- */
- setCustomId(customId: string): this;
- /**
- * Sets whether this select menu is disabled.
- *
- * @param disabled - Whether this select menu is disabled
- */
- setDisabled(disabled?: boolean): this;
- /**
- * {@inheritDoc ComponentBuilder.toJSON}
- */
- toJSON(): SelectMenuType;
-}
-
-/**
- * A builder that creates API-compatible JSON data for channel select menus.
- */
-declare class ChannelSelectMenuBuilder extends BaseSelectMenuBuilder {
- /**
- * Creates a new select menu from API data.
- *
- * @param data - The API data to create this select menu with
- * @example
- * Creating a select menu from an API data object:
- * ```ts
- * const selectMenu = new ChannelSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * placeholder: 'select an option',
- * max_values: 2,
- * });
- * ```
- * @example
- * Creating a select menu using setters and API data:
- * ```ts
- * const selectMenu = new ChannelSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * })
- * .addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement)
- * .setMinValues(2);
- * ```
- */
- constructor(data?: Partial);
- /**
- * Adds channel types to this select menu.
- *
- * @param types - The channel types to use
- */
- addChannelTypes(...types: RestOrArray): this;
- /**
- * Sets channel types for this select menu.
- *
- * @param types - The channel types to use
- */
- setChannelTypes(...types: RestOrArray): this;
- /**
- * Adds default channels to this auto populated select menu.
- *
- * @param channels - The channels to add
- */
- addDefaultChannels(...channels: RestOrArray): this;
- /**
- * Sets default channels to this auto populated select menu.
- *
- * @param channels - The channels to set
- */
- setDefaultChannels(...channels: RestOrArray): this;
- /**
- * {@inheritDoc BaseSelectMenuBuilder.toJSON}
- */
- toJSON(): APIChannelSelectComponent;
-}
-
-/**
- * A builder that creates API-compatible JSON data for mentionable select menus.
- */
-declare class MentionableSelectMenuBuilder extends BaseSelectMenuBuilder {
- /**
- * Creates a new select menu from API data.
- *
- * @param data - The API data to create this select menu with
- * @example
- * Creating a select menu from an API data object:
- * ```ts
- * const selectMenu = new MentionableSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * placeholder: 'select an option',
- * max_values: 2,
- * });
- * ```
- * @example
- * Creating a select menu using setters and API data:
- * ```ts
- * const selectMenu = new MentionableSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * })
- * .setMinValues(1);
- * ```
- */
- constructor(data?: Partial);
- /**
- * Adds default roles to this auto populated select menu.
- *
- * @param roles - The roles to add
- */
- addDefaultRoles(...roles: RestOrArray): this;
- /**
- * Adds default users to this auto populated select menu.
- *
- * @param users - The users to add
- */
- addDefaultUsers(...users: RestOrArray): this;
- /**
- * Adds default values to this auto populated select menu.
- *
- * @param values - The values to add
- */
- addDefaultValues(...values: RestOrArray | APISelectMenuDefaultValue>): this;
- /**
- * Sets default values to this auto populated select menu.
- *
- * @param values - The values to set
- */
- setDefaultValues(...values: RestOrArray | APISelectMenuDefaultValue>): this;
-}
-
-/**
- * A builder that creates API-compatible JSON data for role select menus.
- */
-declare class RoleSelectMenuBuilder extends BaseSelectMenuBuilder {
- /**
- * Creates a new select menu from API data.
- *
- * @param data - The API data to create this select menu with
- * @example
- * Creating a select menu from an API data object:
- * ```ts
- * const selectMenu = new RoleSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * placeholder: 'select an option',
- * max_values: 2,
- * });
- * ```
- * @example
- * Creating a select menu using setters and API data:
- * ```ts
- * const selectMenu = new RoleSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * })
- * .setMinValues(1);
- * ```
- */
- constructor(data?: Partial);
- /**
- * Adds default roles to this auto populated select menu.
- *
- * @param roles - The roles to add
- */
- addDefaultRoles(...roles: RestOrArray): this;
- /**
- * Sets default roles to this auto populated select menu.
- *
- * @param roles - The roles to set
- */
- setDefaultRoles(...roles: RestOrArray): this;
-}
-
-/**
- * A builder that creates API-compatible JSON data for string select menus.
- */
-declare class StringSelectMenuBuilder extends BaseSelectMenuBuilder {
- /**
- * The options within this select menu.
- */
- readonly options: StringSelectMenuOptionBuilder[];
- /**
- * Creates a new select menu from API data.
- *
- * @param data - The API data to create this select menu with
- * @example
- * Creating a select menu from an API data object:
- * ```ts
- * const selectMenu = new StringSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * placeholder: 'select an option',
- * max_values: 2,
- * options: [
- * { label: 'option 1', value: '1' },
- * { label: 'option 2', value: '2' },
- * { label: 'option 3', value: '3' },
- * ],
- * });
- * ```
- * @example
- * Creating a select menu using setters and API data:
- * ```ts
- * const selectMenu = new StringSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * })
- * .setMinValues(1)
- * .addOptions({
- * label: 'Catchy',
- * value: 'catch',
- * });
- * ```
- */
- constructor(data?: Partial);
- /**
- * Adds options to this select menu.
- *
- * @param options - The options to add
- */
- addOptions(...options: RestOrArray): this;
- /**
- * Sets the options for this select menu.
- *
- * @param options - The options to set
- */
- setOptions(...options: RestOrArray): this;
- /**
- * Removes, replaces, or inserts options for this select menu.
- *
- * @remarks
- * This method behaves similarly
- * to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice | Array.prototype.splice()}.
- * It's useful for modifying and adjusting the order of existing options.
- * @example
- * Remove the first option:
- * ```ts
- * selectMenu.spliceOptions(0, 1);
- * ```
- * @example
- * Remove the first n option:
- * ```ts
- * const n = 4;
- * selectMenu.spliceOptions(0, n);
- * ```
- * @example
- * Remove the last option:
- * ```ts
- * selectMenu.spliceOptions(-1, 1);
- * ```
- * @param index - The index to start at
- * @param deleteCount - The number of options to remove
- * @param options - The replacing option objects or builders
- */
- spliceOptions(index: number, deleteCount: number, ...options: RestOrArray): this;
- /**
- * {@inheritDoc BaseSelectMenuBuilder.toJSON}
- */
- toJSON(): APIStringSelectComponent;
-}
-
-/**
- * A builder that creates API-compatible JSON data for user select menus.
- */
-declare class UserSelectMenuBuilder extends BaseSelectMenuBuilder {
- /**
- * Creates a new select menu from API data.
- *
- * @param data - The API data to create this select menu with
- * @example
- * Creating a select menu from an API data object:
- * ```ts
- * const selectMenu = new UserSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * placeholder: 'select an option',
- * max_values: 2,
- * });
- * ```
- * @example
- * Creating a select menu using setters and API data:
- * ```ts
- * const selectMenu = new UserSelectMenuBuilder({
- * custom_id: 'a cool select menu',
- * })
- * .setMinValues(1);
- * ```
- */
- constructor(data?: Partial);
- /**
- * Adds default users to this auto populated select menu.
- *
- * @param users - The users to add
- */
- addDefaultUsers(...users: RestOrArray): this;
- /**
- * Sets default users to this auto populated select menu.
- *
- * @param users - The users to set
- */
- setDefaultUsers(...users: RestOrArray): this;
-}
-
-/**
- * A builder that creates API-compatible JSON data for text inputs.
- */
-declare class TextInputBuilder extends ComponentBuilder implements Equatable> {
- /**
- * Creates a new text input from API data.
- *
- * @param data - The API data to create this text input with
- * @example
- * Creating a select menu option from an API data object:
- * ```ts
- * const textInput = new TextInputBuilder({
- * custom_id: 'a cool select menu',
- * label: 'Type something',
- * style: TextInputStyle.Short,
- * });
- * ```
- * @example
- * Creating a select menu option using setters and API data:
- * ```ts
- * const textInput = new TextInputBuilder({
- * label: 'Type something else',
- * })
- * .setCustomId('woah')
- * .setStyle(TextInputStyle.Paragraph);
- * ```
- */
- constructor(data?: APITextInputComponent & {
- type?: ComponentType.TextInput;
- });
- /**
- * Sets the custom id for this text input.
- *
- * @param customId - The custom id to use
- */
- setCustomId(customId: string): this;
- /**
- * Sets the label for this text input.
- *
- * @param label - The label to use
- */
- setLabel(label: string): this;
- /**
- * Sets the style for this text input.
- *
- * @param style - The style to use
- */
- setStyle(style: TextInputStyle): this;
- /**
- * Sets the minimum length of text for this text input.
- *
- * @param minLength - The minimum length of text for this text input
- */
- setMinLength(minLength: number): this;
- /**
- * Sets the maximum length of text for this text input.
- *
- * @param maxLength - The maximum length of text for this text input
- */
- setMaxLength(maxLength: number): this;
- /**
- * Sets the placeholder for this text input.
- *
- * @param placeholder - The placeholder to use
- */
- setPlaceholder(placeholder: string): this;
- /**
- * Sets the value for this text input.
- *
- * @param value - The value to use
- */
- setValue(value: string): this;
- /**
- * Sets whether this text input is required.
- *
- * @param required - Whether this text input is required
- */
- setRequired(required?: boolean): this;
- /**
- * {@inheritDoc ComponentBuilder.toJSON}
- */
- toJSON(): APITextInputComponent;
- /**
- * {@inheritDoc Equatable.equals}
- */
- equals(other: APITextInputComponent | JSONEncodable): boolean;
-}
-
-/**
- * The builders that may be used for messages.
- */
-type MessageComponentBuilder = ActionRowBuilder | MessageActionRowComponentBuilder;
-/**
- * The builders that may be used for modals.
- */
-type ModalComponentBuilder = ActionRowBuilder | ModalActionRowComponentBuilder;
-/**
- * The builders that may be used within an action row for messages.
- */
-type MessageActionRowComponentBuilder = ButtonBuilder | ChannelSelectMenuBuilder | MentionableSelectMenuBuilder | RoleSelectMenuBuilder | StringSelectMenuBuilder | UserSelectMenuBuilder;
-/**
- * The builders that may be used within an action row for modals.
- */
-type ModalActionRowComponentBuilder = TextInputBuilder;
-/**
- * Any builder.
- */
-type AnyComponentBuilder = MessageActionRowComponentBuilder | ModalActionRowComponentBuilder;
-/**
- * A builder that creates API-compatible JSON data for action rows.
- *
- * @typeParam ComponentType - The types of components this action row holds
- */
-declare class ActionRowBuilder extends ComponentBuilder> {
- /**
- * The components within this action row.
- */
- readonly components: ComponentType[];
- /**
- * Creates a new action row from API data.
- *
- * @param data - The API data to create this action row with
- * @example
- * Creating an action row from an API data object:
- * ```ts
- * const actionRow = new ActionRowBuilder({
- * components: [
- * {
- * custom_id: "custom id",
- * label: "Type something",
- * style: TextInputStyle.Short,
- * type: ComponentType.TextInput,
- * },
- * ],
- * });
- * ```
- * @example
- * Creating an action row using setters and API data:
- * ```ts
- * const actionRow = new ActionRowBuilder({
- * components: [
- * {
- * custom_id: "custom id",
- * label: "Click me",
- * style: ButtonStyle.Primary,
- * type: ComponentType.Button,
- * },
- * ],
- * })
- * .addComponents(button2, button3);
- * ```
- */
- constructor({ components, ...data }?: Partial>);
- /**
- * Adds components to this action row.
- *
- * @param components - The components to add
- */
- addComponents(...components: RestOrArray): this;
- /**
- * Sets components for this action row.
- *
- * @param components - The components to set
- */
- setComponents(...components: RestOrArray): this;
- /**
- * {@inheritDoc ComponentBuilder.toJSON}
- */
- toJSON(): APIActionRowComponent>;
-}
-
-/**
- * Components here are mapped to their respective builder.
- */
-interface MappedComponentTypes {
- /**
- * The action row component type is associated with an {@link ActionRowBuilder}.
- */
- [ComponentType.ActionRow]: ActionRowBuilder;
- /**
- * The button component type is associated with an {@link ButtonBuilder}.
- */
- [ComponentType.Button]: ButtonBuilder;
- /**
- * The string select component type is associated with an {@link StringSelectMenuBuilder}.
- */
- [ComponentType.StringSelect]: StringSelectMenuBuilder;
- /**
- * The text inpiut component type is associated with an {@link TextInputBuilder}.
- */
- [ComponentType.TextInput]: TextInputBuilder;
- /**
- * The user select component type is associated with an {@link UserSelectMenuBuilder}.
- */
- [ComponentType.UserSelect]: UserSelectMenuBuilder;
- /**
- * The role select component type is associated with an {@link RoleSelectMenuBuilder}.
- */
- [ComponentType.RoleSelect]: RoleSelectMenuBuilder;
- /**
- * The mentionable select component type is associated with an {@link MentionableSelectMenuBuilder}.
- */
- [ComponentType.MentionableSelect]: MentionableSelectMenuBuilder;
- /**
- * The channel select component type is associated with an {@link ChannelSelectMenuBuilder}.
- */
- [ComponentType.ChannelSelect]: ChannelSelectMenuBuilder;
-}
-/**
- * Factory for creating components from API data.
- *
- * @typeParam ComponentType - The type of component to use
- * @param data - The API data to transform to a component class
- */
-declare function createComponentBuilder(data: (APIModalComponent | APIMessageComponent) & {
- type: ComponentType;
-}): MappedComponentTypes[ComponentType];
-/**
- * Factory for creating components from API data.
- *
- * @typeParam ComponentBuilder - The type of component to use
- * @param data - The API data to transform to a component class
- */
-declare function createComponentBuilder(data: ComponentBuilder): ComponentBuilder;
-
-declare const textInputStyleValidator: _sapphire_shapeshift.NativeEnumValidator;
-declare const minLengthValidator: _sapphire_shapeshift.NumberValidator;
-declare const maxLengthValidator: _sapphire_shapeshift.NumberValidator;
-declare const requiredValidator: _sapphire_shapeshift.BooleanValidator;
-declare const valueValidator: _sapphire_shapeshift.StringValidator;
-declare const placeholderValidator: _sapphire_shapeshift.StringValidator;
-declare const labelValidator: _sapphire_shapeshift.StringValidator;
-declare function validateRequiredParameters$3(customId?: string, style?: TextInputStyle, label?: string): void;
-
-declare const Assertions$3_labelValidator: typeof labelValidator;
-declare const Assertions$3_maxLengthValidator: typeof maxLengthValidator;
-declare const Assertions$3_minLengthValidator: typeof minLengthValidator;
-declare const Assertions$3_placeholderValidator: typeof placeholderValidator;
-declare const Assertions$3_requiredValidator: typeof requiredValidator;
-declare const Assertions$3_textInputStyleValidator: typeof textInputStyleValidator;
-declare const Assertions$3_valueValidator: typeof valueValidator;
-declare namespace Assertions$3 {
- export {
- Assertions$3_labelValidator as labelValidator,
- Assertions$3_maxLengthValidator as maxLengthValidator,
- Assertions$3_minLengthValidator as minLengthValidator,
- Assertions$3_placeholderValidator as placeholderValidator,
- Assertions$3_requiredValidator as requiredValidator,
- Assertions$3_textInputStyleValidator as textInputStyleValidator,
- validateRequiredParameters$3 as validateRequiredParameters,
- Assertions$3_valueValidator as valueValidator,
- };
-}
-
-/**
- * A builder that creates API-compatible JSON data for modals.
- */
-declare class ModalBuilder implements JSONEncodable {
- /**
- * The API data associated with this modal.
- */
- readonly data: Partial;
- /**
- * The components within this modal.
- */
- readonly components: ActionRowBuilder[];
- /**
- * Creates a new modal from API data.
- *
- * @param data - The API data to create this modal with
- */
- constructor({ components, ...data }?: Partial);
- /**
- * Sets the title of this modal.
- *
- * @param title - The title to use
- */
- setTitle(title: string): this;
- /**
- * Sets the custom id of this modal.
- *
- * @param customId - The custom id to use
- */
- setCustomId(customId: string): this;
- /**
- * Adds components to this modal.
- *
- * @param components - The components to add
- */
- addComponents(...components: RestOrArray | APIActionRowComponent>): this;
- /**
- * Sets components for this modal.
- *
- * @param components - The components to set
- */
- setComponents(...components: RestOrArray>): this;
- /**
- * {@inheritDoc ComponentBuilder.toJSON}
- */
- toJSON(): APIModalInteractionResponseCallbackData;
-}
-
-declare const titleValidator: _sapphire_shapeshift.StringValidator;
-declare const componentsValidator: _sapphire_shapeshift.ArrayValidator<[ActionRowBuilder, ...ActionRowBuilder[]], ActionRowBuilder>;
-declare function validateRequiredParameters$2(customId?: string, title?: string, components?: ActionRowBuilder[]): void;
-
-declare const Assertions$2_componentsValidator: typeof componentsValidator;
-declare const Assertions$2_titleValidator: typeof titleValidator;
-declare namespace Assertions$2 {
- export {
- Assertions$2_componentsValidator as componentsValidator,
- Assertions$2_titleValidator as titleValidator,
- validateRequiredParameters$2 as validateRequiredParameters,
- };
-}
-
-/**
- * This mixin holds name and description symbols for slash commands.
- */
-declare class SharedNameAndDescription {
- /**
- * The name of this command.
- */
- readonly name: string;
- /**
- * The name localizations of this command.
- */
- readonly name_localizations?: LocalizationMap;
- /**
- * The description of this command.
- */
- readonly description: string;
- /**
- * The description localizations of this command.
- */
- readonly description_localizations?: LocalizationMap;
- /**
- * Sets the name of this command.
- *
- * @param name - The name to use
- */
- setName(name: string): this;
- /**
- * Sets the description of this command.
- *
- * @param description - The description to use
- */
- setDescription(description: string): this;
- /**
- * Sets a name localization for this command.
- *
- * @param locale - The locale to set
- * @param localizedName - The localized name for the given `locale`
- */
- setNameLocalization(locale: LocaleString, localizedName: string | null): this;
- /**
- * Sets the name localizations for this command.
- *
- * @param localizedNames - The object of localized names to set
- */
- setNameLocalizations(localizedNames: LocalizationMap | null): this;
- /**
- * Sets a description localization for this command.
- *
- * @param locale - The locale to set
- * @param localizedDescription - The localized description for the given locale
- */
- setDescriptionLocalization(locale: LocaleString, localizedDescription: string | null): this;
- /**
- * Sets the description localizations for this command.
- *
- * @param localizedDescriptions - The object of localized descriptions to set
- */
- setDescriptionLocalizations(localizedDescriptions: LocalizationMap | null): this;
-}
-
-/**
- * The base application command option builder that contains common symbols for application command builders.
- */
-declare abstract class ApplicationCommandOptionBase extends SharedNameAndDescription {
- /**
- * The type of this option.
- */
- abstract readonly type: ApplicationCommandOptionType;
- /**
- * Whether this option is required.
- *
- * @defaultValue `false`
- */
- readonly required: boolean;
- /**
- * Sets whether this option is required.
- *
- * @param required - Whether this option should be required
- */
- setRequired(required: boolean): this;
- /**
- * Serializes this builder to API-compatible JSON data.
- *
- * @remarks
- * This method runs validations on the data before serializing it.
- * As such, it may throw an error if the data is invalid.
- */
- abstract toJSON(): APIApplicationCommandBasicOption;
- /**
- * This method runs required validators on this builder.
- */
- protected runRequiredValidations(): void;
-}
-
-/**
- * A slash command attachment option.
- */
-declare class SlashCommandAttachmentOption extends ApplicationCommandOptionBase {
- /**
- * The type of this option.
- */
- readonly type: ApplicationCommandOptionType.Attachment;
- /**
- * {@inheritDoc ApplicationCommandOptionBase.toJSON}
- */
- toJSON(): APIApplicationCommandAttachmentOption;
-}
-
-/**
- * A slash command boolean option.
- */
-declare class SlashCommandBooleanOption extends ApplicationCommandOptionBase {
- /**
- * The type of this option.
- */
- readonly type: ApplicationCommandOptionType.Boolean;
- /**
- * {@inheritDoc ApplicationCommandOptionBase.toJSON}
- */
- toJSON(): APIApplicationCommandBooleanOption;
-}
-
-/**
- * The allowed channel types used for a channel option in a slash command builder.
- *
- * @privateRemarks This can't be dynamic because const enums are erased at runtime.
- * @internal
- */
-declare const allowedChannelTypes: readonly [ChannelType.GuildText, ChannelType.GuildVoice, ChannelType.GuildCategory, ChannelType.GuildAnnouncement, ChannelType.AnnouncementThread, ChannelType.PublicThread, ChannelType.PrivateThread, ChannelType.GuildStageVoice, ChannelType.GuildForum, ChannelType.GuildMedia];
-/**
- * The type of allowed channel types used for a channel option.
- */
-type ApplicationCommandOptionAllowedChannelTypes = (typeof allowedChannelTypes)[number];
-/**
- * This mixin holds channel type symbols used for options.
- */
-declare class ApplicationCommandOptionChannelTypesMixin {
- /**
- * The channel types of this option.
- */
- readonly channel_types?: ApplicationCommandOptionAllowedChannelTypes[];
- /**
- * Adds channel types to this option.
- *
- * @param channelTypes - The channel types
- */
- addChannelTypes(...channelTypes: ApplicationCommandOptionAllowedChannelTypes[]): this;
-}
-
-/**
- * A slash command channel option.
- */
-declare class SlashCommandChannelOption extends ApplicationCommandOptionBase {
- /**
- * The type of this option.
- */
- readonly type: ApplicationCommandOptionType.Channel;
- /**
- * {@inheritDoc ApplicationCommandOptionBase.toJSON}
- */
- toJSON(): APIApplicationCommandChannelOption;
-}
-interface SlashCommandChannelOption extends ApplicationCommandOptionChannelTypesMixin {
-}
-
-/**
- * This mixin holds minimum and maximum symbols used for options.
- */
-declare abstract class ApplicationCommandNumericOptionMinMaxValueMixin {
- /**
- * The maximum value of this option.
- */
- readonly max_value?: number;
- /**
- * The minimum value of this option.
- */
- readonly min_value?: number;
- /**
- * Sets the maximum number value of this option.
- *
- * @param max - The maximum value this option can be
- */
- abstract setMaxValue(max: number): this;
- /**
- * Sets the minimum number value of this option.
- *
- * @param min - The minimum value this option can be
- */
- abstract setMinValue(min: number): this;
-}
-
-/**
- * This mixin holds choices and autocomplete symbols used for options.
- */
-declare class ApplicationCommandOptionWithChoicesAndAutocompleteMixin {
- /**
- * The choices of this option.
- */
- readonly choices?: APIApplicationCommandOptionChoice[];
- /**
- * Whether this option utilizes autocomplete.
- */
- readonly autocomplete?: boolean;
- /**
- * The type of this option.
- *
- * @privateRemarks Since this is present and this is a mixin, this is needed.
- */
- readonly type: ApplicationCommandOptionType;
- /**
- * Adds multiple choices to this option.
- *
- * @param choices - The choices to add
- */
- addChoices(...choices: APIApplicationCommandOptionChoice[]): this;
- /**
- * Sets multiple choices for this option.
- *
- * @param choices - The choices to set
- */
- setChoices[]>(...choices: Input): this;
- /**
- * Whether this option uses autocomplete.
- *
- * @param autocomplete - Whether this option should use autocomplete
- */
- setAutocomplete(autocomplete: boolean): this;
-}
-
-/**
- * A slash command integer option.
- */
-declare class SlashCommandIntegerOption extends ApplicationCommandOptionBase implements ApplicationCommandNumericOptionMinMaxValueMixin {
- /**
- * The type of this option.
- */
- readonly type: ApplicationCommandOptionType.Integer;
- /**
- * {@inheritDoc ApplicationCommandNumericOptionMinMaxValueMixin.setMaxValue}
- */
- setMaxValue(max: number): this;
- /**
- * {@inheritDoc ApplicationCommandNumericOptionMinMaxValueMixin.setMinValue}
- */
- setMinValue(min: number): this;
- /**
- * {@inheritDoc ApplicationCommandOptionBase.toJSON}
- */
- toJSON(): APIApplicationCommandIntegerOption;
-}
-interface SlashCommandIntegerOption extends ApplicationCommandNumericOptionMinMaxValueMixin, ApplicationCommandOptionWithChoicesAndAutocompleteMixin {
-}
-
-/**
- * A slash command mentionable option.
- */
-declare class SlashCommandMentionableOption extends ApplicationCommandOptionBase {
- /**
- * The type of this option.
- */
- readonly type: ApplicationCommandOptionType.Mentionable;
- /**
- * {@inheritDoc ApplicationCommandOptionBase.toJSON}
- */
- toJSON(): APIApplicationCommandMentionableOption;
-}
-
-/**
- * A slash command number option.
- */
-declare class SlashCommandNumberOption extends ApplicationCommandOptionBase implements ApplicationCommandNumericOptionMinMaxValueMixin {
- /**
- * The type of this option.
- */
- readonly type: ApplicationCommandOptionType.Number;
- /**
- * {@inheritDoc ApplicationCommandNumericOptionMinMaxValueMixin.setMaxValue}
- */
- setMaxValue(max: number): this;
- /**
- * {@inheritDoc ApplicationCommandNumericOptionMinMaxValueMixin.setMinValue}
- */
- setMinValue(min: number): this;
- /**
- * {@inheritDoc ApplicationCommandOptionBase.toJSON}
- */
- toJSON(): APIApplicationCommandNumberOption;
-}
-interface SlashCommandNumberOption extends ApplicationCommandNumericOptionMinMaxValueMixin, ApplicationCommandOptionWithChoicesAndAutocompleteMixin