js-discord-modularcommand 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/modularbutton.d.ts
CHANGED
|
@@ -16,10 +16,7 @@ export default class ModularButton {
|
|
|
16
16
|
customId: string;
|
|
17
17
|
/** The visual style of the button. */
|
|
18
18
|
style: ButtonStyle;
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated This property is deprecated and will be removed in future versions.
|
|
21
|
-
* Use other mechanisms to handle button interactions.
|
|
22
|
-
*/
|
|
19
|
+
/** Use other mechanisms to handle button interactions. */
|
|
23
20
|
execute: ButtonExecuteFunction;
|
|
24
21
|
/**
|
|
25
22
|
* @description Creates a new ModularButton instance.
|
package/dist/modularbutton.js
CHANGED
|
@@ -19,10 +19,7 @@ class ModularButton {
|
|
|
19
19
|
* @param {string} customId The custom ID for the button. This should be unique within the context of a message.
|
|
20
20
|
*/
|
|
21
21
|
constructor(customId) {
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated This property is deprecated and will be removed in future versions.
|
|
24
|
-
* Use other mechanisms to handle button interactions.
|
|
25
|
-
*/
|
|
22
|
+
/** Use other mechanisms to handle button interactions. */
|
|
26
23
|
this.execute = async () => { };
|
|
27
24
|
this.buttonObject = new discord_js_1.ButtonBuilder()
|
|
28
25
|
.setCustomId(customId);
|
package/dist/modularmodal.d.ts
CHANGED
|
@@ -15,7 +15,10 @@ export default class ModularModal {
|
|
|
15
15
|
modalObject: ModalBuilder;
|
|
16
16
|
/** The unique custom ID for the modal, formatted as `${command.name}_${modalId}`. */
|
|
17
17
|
customId: string;
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated This property is deprecated and will be removed in future versions.
|
|
20
|
+
* The base ID for the modal, used for localization.
|
|
21
|
+
*/
|
|
19
22
|
modalId: string;
|
|
20
23
|
/** A map to store the text input components of the modal. */
|
|
21
24
|
modalInputs: Map<string, TextInputBuilder>;
|
package/dist/modularmodal.js
CHANGED
|
@@ -22,7 +22,7 @@ class ModularModal {
|
|
|
22
22
|
constructor(modalId, command) {
|
|
23
23
|
/** The function to execute when the modal is submitted. */
|
|
24
24
|
this.execute = async () => { };
|
|
25
|
-
this.customId =
|
|
25
|
+
this.customId = modalId;
|
|
26
26
|
this.modalId = modalId;
|
|
27
27
|
this.command = command;
|
|
28
28
|
this.modalObject = new discord_js_1.ModalBuilder().setCustomId(this.customId);
|