@moody-djs/prompts 1.0.2 → 1.0.3
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/index.d.mts +112 -5
- package/dist/index.d.ts +112 -5
- package/dist/index.js +209 -1
- package/dist/index.mjs +186 -1
- package/dist/v2/index.d.mts +95 -3
- package/dist/v2/index.d.ts +95 -3
- package/dist/v2/index.js +255 -1
- package/dist/v2/index.mjs +235 -1
- package/package.json +11 -1
- package/dist/Prompt.d.mts +0 -42
- package/dist/Prompt.d.ts +0 -42
- package/dist/Prompt.js +0 -1
- package/dist/Prompt.mjs +0 -1
- package/dist/types/prompt.types.d.mts +0 -67
- package/dist/types/prompt.types.d.ts +0 -67
- package/dist/types/prompt.types.js +0 -1
- package/dist/types/prompt.types.mjs +0 -1
- package/dist/types/util.types.d.mts +0 -3
- package/dist/types/util.types.d.ts +0 -3
- package/dist/types/util.types.js +0 -1
- package/dist/types/util.types.mjs +0 -0
- package/dist/util/errors.d.mts +0 -8
- package/dist/util/errors.d.ts +0 -8
- package/dist/util/errors.js +0 -1
- package/dist/util/errors.mjs +0 -1
- package/dist/v2/Prompt.d.mts +0 -46
- package/dist/v2/Prompt.d.ts +0 -46
- package/dist/v2/Prompt.js +0 -1
- package/dist/v2/Prompt.mjs +0 -1
- package/dist/v2/prompt.types.d.mts +0 -53
- package/dist/v2/prompt.types.d.ts +0 -53
- package/dist/v2/prompt.types.js +0 -1
- package/dist/v2/prompt.types.mjs +0 -1
package/dist/v2/Prompt.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var d=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var s=(a,t)=>d(a,"name",{value:t,configurable:!0});var y=(a,t)=>{for(var e in t)d(a,e,{get:t[e],enumerable:!0})},M=(a,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of g(t))!I.call(a,n)&&n!==e&&d(a,n,{get:()=>t[n],enumerable:!(o=h(t,n))||o.enumerable});return a};var x=a=>M(d({},"__esModule",{value:!0}),a);var T={};y(T,{Prompt:()=>P,PromptError:()=>c});module.exports=x(T);var S=require("util"),r=require("discord.js");var b=require("discord.js");var m=class extends b.ButtonBuilder{static{s(this,"PromptButtonBuilder")}callback;modal;setCallback(t){return this.callback=t,this}getCallback(){return this.callback}setModal(t){return this.modal=t,this}getModal(){return this.modal}},C=class extends b.StringSelectMenuBuilder{static{s(this,"PromptSelectMenuBuilder")}callback;modal;setCallback(t){return this.callback=t,this}getCallback(){return this.callback}setModal(t){return this.modal=t,this}getModal(){return this.modal}};var c=class a extends Error{static{s(this,"PromptError")}constructor(t){super(t),Error.captureStackTrace?.(this,a)}},P=class{constructor(t,e,o){this.initialState=e;let n=[],l=s(()=>this.context.previousStates.pop()??this.initialState,"goBack");this.context={...t,previousStates:n,goBack:l},this.states=new Map(o.map(i=>[i.name,i]))}static{s(this,"Prompt")}context;currentState;components=new r.Collection;collector;states;async start(t){return this.context.interaction=t,this.changeState(this.initialState,t)}async changeState(t,e){let o=this.states.get(t);if(!o)return Promise.reject(new c(`State ${t} not found.`));this.context.previousStates.push(this.currentState?.name??this.initialState),this.currentState=o;let n=await o.onEntered?.(this.context);if(n)return this.changeState(n,e);this.components.clear();let l=await this.prepareMessageOptions(o),i=await this.replyOrEdit(e,l);return this.collector&&this.collector.stop(),this.collector=i.createMessageComponentCollector({time:o.timeout||12e4,filter:s(u=>u.user.id===e.user.id,"filter")}),this.collector.on("collect",this.handleCollect.bind(this)),!0}async handleCollect(t){let e=this.components.get(t.customId);if(!e)throw new c(`Couldn't find component with customId: ${t.customId}`);if(e.modal){let n=await this.unwrap(e.modal,t);if(!n){await t.deferUpdate(),this.collector?.stop(),this.context.interaction=t;let p=await this.getNewStateFromCallback(e)??this.currentState?.name;return p?void this.changeState(p,t):t.deleteReply()}let l=r.SnowflakeUtil.generate().toString();n.setCustomId(l),await t.showModal(n);let i=await t.awaitModalSubmit({time:3e5,filter:s(p=>p.user.id===t.user.id&&p.customId===l,"filter")}).catch(()=>null);if(!i)return;await i.deferUpdate(),this.collector?.stop(),this.context.interaction=i;let u=await this.getNewStateFromCallback(e,i)??this.currentState?.name;return u?void this.changeState(u,t):t.deleteReply()}await t.deferUpdate(),this.collector?.stop(),this.context.interaction=t;let o=await this.getNewStateFromCallback(e)??this.currentState?.name;if(!o)return t.deleteReply();this.changeState(o,t)}async prepareMessageOptions(t){let e=await this.unwrap(t.message,this.context),o=await this.unwrap(e.components,this.context);return this.registerComponents(o),console.log((0,S.inspect)(o,{depth:null})),{components:o,fetchReply:!0,flags:(e.ephemeral?r.MessageFlags.Ephemeral:0)|r.MessageFlags.IsComponentsV2}}async getNewStateFromCallback(t,e){if(t.callback){if(typeof t.callback=="string")return t.callback;if(t.modal){if(!e)throw new c("No modal submit interaction found when required.");return t.callback(this.context,e)}return t.callback(this.context)}}registerComponents(t){for(let e of t)if(e instanceof m){let o=r.SnowflakeUtil.generate().toString();e.setCustomId(o),this.components.set(o,{...e.toJSON(),custom_id:o,callback:e.getCallback(),modal:e.getModal()})}else if(e instanceof C){let o=r.SnowflakeUtil.generate().toString();e.setCustomId(o),this.components.set(o,{...e.toJSON(),custom_id:o,callback:e.getCallback(),modal:e.getModal()})}else if(e instanceof r.SectionBuilder&&e.accessory instanceof m){let o=r.SnowflakeUtil.generate().toString();e.accessory.setCustomId(o),this.components.set(o,{...e.accessory.toJSON(),custom_id:o,callback:e.accessory.getCallback(),modal:e.accessory.getModal()})}else"components"in e&&Array.isArray(e.components)&&this.registerComponents(e.components)}async unwrap(t,...e){return typeof t=="function"?t(...e):t}async replyOrEdit(t,e){return t.replied||t.deferred?t.editReply({components:e.components}):t.reply(e)}};0&&(module.exports={Prompt,PromptError});
|
package/dist/v2/Prompt.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var P=Object.defineProperty;var r=(i,t)=>P(i,"name",{value:t,configurable:!0});import{inspect as g}from"util";import{Collection as I,MessageFlags as C,SectionBuilder as y,SnowflakeUtil as d}from"discord.js";import{ButtonBuilder as S,StringSelectMenuBuilder as h}from"discord.js";var c=class extends S{static{r(this,"PromptButtonBuilder")}callback;modal;setCallback(t){return this.callback=t,this}getCallback(){return this.callback}setModal(t){return this.modal=t,this}getModal(){return this.modal}},u=class extends h{static{r(this,"PromptSelectMenuBuilder")}callback;modal;setCallback(t){return this.callback=t,this}getCallback(){return this.callback}setModal(t){return this.modal=t,this}getModal(){return this.modal}};var p=class i extends Error{static{r(this,"PromptError")}constructor(t){super(t),Error.captureStackTrace?.(this,i)}},b=class{constructor(t,e,o){this.initialState=e;let n=[],s=r(()=>this.context.previousStates.pop()??this.initialState,"goBack");this.context={...t,previousStates:n,goBack:s},this.states=new Map(o.map(a=>[a.name,a]))}static{r(this,"Prompt")}context;currentState;components=new I;collector;states;async start(t){return this.context.interaction=t,this.changeState(this.initialState,t)}async changeState(t,e){let o=this.states.get(t);if(!o)return Promise.reject(new p(`State ${t} not found.`));this.context.previousStates.push(this.currentState?.name??this.initialState),this.currentState=o;let n=await o.onEntered?.(this.context);if(n)return this.changeState(n,e);this.components.clear();let s=await this.prepareMessageOptions(o),a=await this.replyOrEdit(e,s);return this.collector&&this.collector.stop(),this.collector=a.createMessageComponentCollector({time:o.timeout||12e4,filter:r(m=>m.user.id===e.user.id,"filter")}),this.collector.on("collect",this.handleCollect.bind(this)),!0}async handleCollect(t){let e=this.components.get(t.customId);if(!e)throw new p(`Couldn't find component with customId: ${t.customId}`);if(e.modal){let n=await this.unwrap(e.modal,t);if(!n){await t.deferUpdate(),this.collector?.stop(),this.context.interaction=t;let l=await this.getNewStateFromCallback(e)??this.currentState?.name;return l?void this.changeState(l,t):t.deleteReply()}let s=d.generate().toString();n.setCustomId(s),await t.showModal(n);let a=await t.awaitModalSubmit({time:3e5,filter:r(l=>l.user.id===t.user.id&&l.customId===s,"filter")}).catch(()=>null);if(!a)return;await a.deferUpdate(),this.collector?.stop(),this.context.interaction=a;let m=await this.getNewStateFromCallback(e,a)??this.currentState?.name;return m?void this.changeState(m,t):t.deleteReply()}await t.deferUpdate(),this.collector?.stop(),this.context.interaction=t;let o=await this.getNewStateFromCallback(e)??this.currentState?.name;if(!o)return t.deleteReply();this.changeState(o,t)}async prepareMessageOptions(t){let e=await this.unwrap(t.message,this.context),o=await this.unwrap(e.components,this.context);return this.registerComponents(o),console.log(g(o,{depth:null})),{components:o,fetchReply:!0,flags:(e.ephemeral?C.Ephemeral:0)|C.IsComponentsV2}}async getNewStateFromCallback(t,e){if(t.callback){if(typeof t.callback=="string")return t.callback;if(t.modal){if(!e)throw new p("No modal submit interaction found when required.");return t.callback(this.context,e)}return t.callback(this.context)}}registerComponents(t){for(let e of t)if(e instanceof c){let o=d.generate().toString();e.setCustomId(o),this.components.set(o,{...e.toJSON(),custom_id:o,callback:e.getCallback(),modal:e.getModal()})}else if(e instanceof u){let o=d.generate().toString();e.setCustomId(o),this.components.set(o,{...e.toJSON(),custom_id:o,callback:e.getCallback(),modal:e.getModal()})}else if(e instanceof y&&e.accessory instanceof c){let o=d.generate().toString();e.accessory.setCustomId(o),this.components.set(o,{...e.accessory.toJSON(),custom_id:o,callback:e.accessory.getCallback(),modal:e.accessory.getModal()})}else"components"in e&&Array.isArray(e.components)&&this.registerComponents(e.components)}async unwrap(t,...e){return typeof t=="function"?t(...e):t}async replyOrEdit(t,e){return t.replied||t.deferred?t.editReply({components:e.components}):t.reply(e)}};export{b as Prompt,p as PromptError};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as discord_js from 'discord.js';
|
|
2
|
-
import { RepliableInteraction, JSONEncodable, APIMessageTopLevelComponent, APIActionRowComponent, APIButtonComponentWithCustomId, ModalSubmitInteraction, ButtonInteraction, ModalBuilder, APIStringSelectComponent, StringSelectMenuInteraction, ButtonBuilder, StringSelectMenuBuilder } from 'discord.js';
|
|
3
|
-
|
|
4
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
5
|
-
type PromptContext<Context extends object, T = RepliableInteraction> = Context & {
|
|
6
|
-
interaction?: T;
|
|
7
|
-
previousStates: string[];
|
|
8
|
-
goBack: () => string;
|
|
9
|
-
};
|
|
10
|
-
/** A prompt state message callback */
|
|
11
|
-
interface PromptStateMessageCallback<T extends object> {
|
|
12
|
-
ephemeral: boolean;
|
|
13
|
-
components: JSONEncodable<APIPromptTopLevelComponent<T>>[] | ((ctx: PromptContext<T>) => MaybePromise<JSONEncodable<APIPromptTopLevelComponent<T>>[]>);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* A type representing a prompt state that is possible
|
|
17
|
-
* @param T The type of the prompt context
|
|
18
|
-
*/
|
|
19
|
-
interface PromptState<T extends object> {
|
|
20
|
-
name: string;
|
|
21
|
-
timeout?: number;
|
|
22
|
-
onEntered?: (ctx: PromptContext<T>) => MaybePromise<string | undefined>;
|
|
23
|
-
message: PromptStateMessageCallback<T> | ((ctx: PromptContext<T>) => MaybePromise<PromptStateMessageCallback<T>>);
|
|
24
|
-
}
|
|
25
|
-
type PromptComponentCallback<Context extends object, Interaction> = string | ((ctx: PromptContext<Context, Interaction>, modalInteraction?: ModalSubmitInteraction) => MaybePromise<string | undefined>);
|
|
26
|
-
type APIPromptTopLevelComponent<T extends object> = APIMessageTopLevelComponent | APIActionRowComponent<APIPromptButtonComponent<T> | APIPromptSelectMenuComponent<T>>;
|
|
27
|
-
type APIPromptButtonComponent<T extends object> = APIButtonComponentWithCustomId & {
|
|
28
|
-
callback: PromptComponentCallback<T, ButtonInteraction>;
|
|
29
|
-
modal?: ModalBuilder | ((interaction: ButtonInteraction) => MaybePromise<ModalBuilder | null>);
|
|
30
|
-
};
|
|
31
|
-
type APIPromptSelectMenuComponent<T extends object> = APIStringSelectComponent & {
|
|
32
|
-
callback: PromptComponentCallback<T, StringSelectMenuInteraction>;
|
|
33
|
-
modal?: ModalBuilder | ((interaction: StringSelectMenuInteraction) => MaybePromise<ModalBuilder | null>);
|
|
34
|
-
};
|
|
35
|
-
type RegisterComponentsOptions<T extends object> = APIPromptTopLevelComponent<T> | APIPromptButtonComponent<T> | APIPromptSelectMenuComponent<T>;
|
|
36
|
-
declare class PromptButtonBuilder<Context extends object> extends ButtonBuilder {
|
|
37
|
-
callback?: PromptComponentCallback<Context, ButtonInteraction>;
|
|
38
|
-
modal?: ModalBuilder | ((interaction: ButtonInteraction) => MaybePromise<ModalBuilder | null>);
|
|
39
|
-
setCallback(callback: PromptComponentCallback<Context, ButtonInteraction>): this;
|
|
40
|
-
getCallback(): PromptComponentCallback<Context, ButtonInteraction<discord_js.CacheType>>;
|
|
41
|
-
setModal(modal: ModalBuilder | ((interaction: ButtonInteraction) => MaybePromise<ModalBuilder | null>)): this;
|
|
42
|
-
getModal(): ModalBuilder | ((interaction: ButtonInteraction) => MaybePromise<ModalBuilder | null>) | undefined;
|
|
43
|
-
}
|
|
44
|
-
declare class PromptSelectMenuBuilder<Context extends object> extends StringSelectMenuBuilder {
|
|
45
|
-
callback?: PromptComponentCallback<Context, StringSelectMenuInteraction>;
|
|
46
|
-
modal?: ModalBuilder | ((interaction: StringSelectMenuInteraction) => MaybePromise<ModalBuilder | null>);
|
|
47
|
-
setCallback(callback: PromptComponentCallback<Context, StringSelectMenuInteraction>): this;
|
|
48
|
-
getCallback(): PromptComponentCallback<Context, StringSelectMenuInteraction<discord_js.CacheType>>;
|
|
49
|
-
setModal(modal: ModalBuilder | ((interaction: StringSelectMenuInteraction) => MaybePromise<ModalBuilder | null>)): this;
|
|
50
|
-
getModal(): ModalBuilder | ((interaction: StringSelectMenuInteraction) => MaybePromise<ModalBuilder | null>) | undefined;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export { type APIPromptButtonComponent, type APIPromptSelectMenuComponent, type APIPromptTopLevelComponent, PromptButtonBuilder, type PromptContext, PromptSelectMenuBuilder, type PromptState, type PromptStateMessageCallback, type RegisterComponentsOptions };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as discord_js from 'discord.js';
|
|
2
|
-
import { RepliableInteraction, JSONEncodable, APIMessageTopLevelComponent, APIActionRowComponent, APIButtonComponentWithCustomId, ModalSubmitInteraction, ButtonInteraction, ModalBuilder, APIStringSelectComponent, StringSelectMenuInteraction, ButtonBuilder, StringSelectMenuBuilder } from 'discord.js';
|
|
3
|
-
|
|
4
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
5
|
-
type PromptContext<Context extends object, T = RepliableInteraction> = Context & {
|
|
6
|
-
interaction?: T;
|
|
7
|
-
previousStates: string[];
|
|
8
|
-
goBack: () => string;
|
|
9
|
-
};
|
|
10
|
-
/** A prompt state message callback */
|
|
11
|
-
interface PromptStateMessageCallback<T extends object> {
|
|
12
|
-
ephemeral: boolean;
|
|
13
|
-
components: JSONEncodable<APIPromptTopLevelComponent<T>>[] | ((ctx: PromptContext<T>) => MaybePromise<JSONEncodable<APIPromptTopLevelComponent<T>>[]>);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* A type representing a prompt state that is possible
|
|
17
|
-
* @param T The type of the prompt context
|
|
18
|
-
*/
|
|
19
|
-
interface PromptState<T extends object> {
|
|
20
|
-
name: string;
|
|
21
|
-
timeout?: number;
|
|
22
|
-
onEntered?: (ctx: PromptContext<T>) => MaybePromise<string | undefined>;
|
|
23
|
-
message: PromptStateMessageCallback<T> | ((ctx: PromptContext<T>) => MaybePromise<PromptStateMessageCallback<T>>);
|
|
24
|
-
}
|
|
25
|
-
type PromptComponentCallback<Context extends object, Interaction> = string | ((ctx: PromptContext<Context, Interaction>, modalInteraction?: ModalSubmitInteraction) => MaybePromise<string | undefined>);
|
|
26
|
-
type APIPromptTopLevelComponent<T extends object> = APIMessageTopLevelComponent | APIActionRowComponent<APIPromptButtonComponent<T> | APIPromptSelectMenuComponent<T>>;
|
|
27
|
-
type APIPromptButtonComponent<T extends object> = APIButtonComponentWithCustomId & {
|
|
28
|
-
callback: PromptComponentCallback<T, ButtonInteraction>;
|
|
29
|
-
modal?: ModalBuilder | ((interaction: ButtonInteraction) => MaybePromise<ModalBuilder | null>);
|
|
30
|
-
};
|
|
31
|
-
type APIPromptSelectMenuComponent<T extends object> = APIStringSelectComponent & {
|
|
32
|
-
callback: PromptComponentCallback<T, StringSelectMenuInteraction>;
|
|
33
|
-
modal?: ModalBuilder | ((interaction: StringSelectMenuInteraction) => MaybePromise<ModalBuilder | null>);
|
|
34
|
-
};
|
|
35
|
-
type RegisterComponentsOptions<T extends object> = APIPromptTopLevelComponent<T> | APIPromptButtonComponent<T> | APIPromptSelectMenuComponent<T>;
|
|
36
|
-
declare class PromptButtonBuilder<Context extends object> extends ButtonBuilder {
|
|
37
|
-
callback?: PromptComponentCallback<Context, ButtonInteraction>;
|
|
38
|
-
modal?: ModalBuilder | ((interaction: ButtonInteraction) => MaybePromise<ModalBuilder | null>);
|
|
39
|
-
setCallback(callback: PromptComponentCallback<Context, ButtonInteraction>): this;
|
|
40
|
-
getCallback(): PromptComponentCallback<Context, ButtonInteraction<discord_js.CacheType>>;
|
|
41
|
-
setModal(modal: ModalBuilder | ((interaction: ButtonInteraction) => MaybePromise<ModalBuilder | null>)): this;
|
|
42
|
-
getModal(): ModalBuilder | ((interaction: ButtonInteraction) => MaybePromise<ModalBuilder | null>) | undefined;
|
|
43
|
-
}
|
|
44
|
-
declare class PromptSelectMenuBuilder<Context extends object> extends StringSelectMenuBuilder {
|
|
45
|
-
callback?: PromptComponentCallback<Context, StringSelectMenuInteraction>;
|
|
46
|
-
modal?: ModalBuilder | ((interaction: StringSelectMenuInteraction) => MaybePromise<ModalBuilder | null>);
|
|
47
|
-
setCallback(callback: PromptComponentCallback<Context, StringSelectMenuInteraction>): this;
|
|
48
|
-
getCallback(): PromptComponentCallback<Context, StringSelectMenuInteraction<discord_js.CacheType>>;
|
|
49
|
-
setModal(modal: ModalBuilder | ((interaction: StringSelectMenuInteraction) => MaybePromise<ModalBuilder | null>)): this;
|
|
50
|
-
getModal(): ModalBuilder | ((interaction: StringSelectMenuInteraction) => MaybePromise<ModalBuilder | null>) | undefined;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export { type APIPromptButtonComponent, type APIPromptSelectMenuComponent, type APIPromptTopLevelComponent, PromptButtonBuilder, type PromptContext, PromptSelectMenuBuilder, type PromptState, type PromptStateMessageCallback, type RegisterComponentsOptions };
|
package/dist/v2/prompt.types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var l=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var r=(e,t)=>l(e,"name",{value:t,configurable:!0});var b=(e,t)=>{for(var n in t)l(e,n,{get:t[n],enumerable:!0})},d=(e,t,n,p)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of s(t))!u.call(e,o)&&o!==n&&l(e,o,{get:()=>t[o],enumerable:!(p=m(t,o))||p.enumerable});return e};var C=e=>d(l({},"__esModule",{value:!0}),e);var P={};b(P,{PromptButtonBuilder:()=>i,PromptSelectMenuBuilder:()=>c});module.exports=C(P);var a=require("discord.js");var i=class extends a.ButtonBuilder{static{r(this,"PromptButtonBuilder")}callback;modal;setCallback(t){return this.callback=t,this}getCallback(){return this.callback}setModal(t){return this.modal=t,this}getModal(){return this.modal}},c=class extends a.StringSelectMenuBuilder{static{r(this,"PromptSelectMenuBuilder")}callback;modal;setCallback(t){return this.callback=t,this}getCallback(){return this.callback}setModal(t){return this.modal=t,this}getModal(){return this.modal}};0&&(module.exports={PromptButtonBuilder,PromptSelectMenuBuilder});
|
package/dist/v2/prompt.types.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=Object.defineProperty;var o=(e,t)=>a(e,"name",{value:t,configurable:!0});import{ButtonBuilder as r,StringSelectMenuBuilder as i}from"discord.js";var n=class extends r{static{o(this,"PromptButtonBuilder")}callback;modal;setCallback(t){return this.callback=t,this}getCallback(){return this.callback}setModal(t){return this.modal=t,this}getModal(){return this.modal}},l=class extends i{static{o(this,"PromptSelectMenuBuilder")}callback;modal;setCallback(t){return this.callback=t,this}getCallback(){return this.callback}setModal(t){return this.modal=t,this}getModal(){return this.modal}};export{n as PromptButtonBuilder,l as PromptSelectMenuBuilder};
|