@minesa-org/mini-interaction 0.0.11 → 0.0.12
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.
|
@@ -3,7 +3,6 @@ import type { JSONEncodable } from "./shared.js";
|
|
|
3
3
|
/** Shape describing initial text input data accepted by the builder. */
|
|
4
4
|
export type TextInputBuilderData = {
|
|
5
5
|
customId?: string;
|
|
6
|
-
label?: string;
|
|
7
6
|
style?: TextInputStyle;
|
|
8
7
|
minLength?: number;
|
|
9
8
|
maxLength?: number;
|
|
@@ -22,10 +21,6 @@ export declare class TextInputBuilder implements JSONEncodable<APITextInputCompo
|
|
|
22
21
|
* Sets the custom identifier for this text input.
|
|
23
22
|
*/
|
|
24
23
|
setCustomId(customId: string): this;
|
|
25
|
-
/**
|
|
26
|
-
* Sets the label displayed above the text input.
|
|
27
|
-
*/
|
|
28
|
-
setLabel(label: string): this;
|
|
29
24
|
/**
|
|
30
25
|
* Sets the style of the text input (Short or Paragraph).
|
|
31
26
|
*/
|
|
@@ -8,7 +8,6 @@ export class TextInputBuilder {
|
|
|
8
8
|
constructor(data = {}) {
|
|
9
9
|
this.data = {
|
|
10
10
|
customId: data.customId,
|
|
11
|
-
label: data.label,
|
|
12
11
|
style: data.style ?? TextInputStyle.Short,
|
|
13
12
|
minLength: data.minLength,
|
|
14
13
|
maxLength: data.maxLength,
|
|
@@ -24,13 +23,6 @@ export class TextInputBuilder {
|
|
|
24
23
|
this.data.customId = customId;
|
|
25
24
|
return this;
|
|
26
25
|
}
|
|
27
|
-
/**
|
|
28
|
-
* Sets the label displayed above the text input.
|
|
29
|
-
*/
|
|
30
|
-
setLabel(label) {
|
|
31
|
-
this.data.label = label;
|
|
32
|
-
return this;
|
|
33
|
-
}
|
|
34
26
|
/**
|
|
35
27
|
* Sets the style of the text input (Short or Paragraph).
|
|
36
28
|
*/
|
|
@@ -85,7 +77,6 @@ export class TextInputBuilder {
|
|
|
85
77
|
return {
|
|
86
78
|
type: ComponentType.TextInput,
|
|
87
79
|
custom_id: this.data.customId,
|
|
88
|
-
label: this.data.label,
|
|
89
80
|
style: this.data.style ?? TextInputStyle.Short,
|
|
90
81
|
min_length: this.data.minLength,
|
|
91
82
|
max_length: this.data.maxLength,
|
package/package.json
CHANGED