@mostfeatured/dbi 0.0.54 → 0.0.56

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.
Files changed (62) hide show
  1. package/dist/DBI.d.ts +156 -156
  2. package/dist/DBI.js +332 -332
  3. package/dist/Events.d.ts +53 -53
  4. package/dist/Events.js +58 -58
  5. package/dist/data/eventMap.json +234 -234
  6. package/dist/index.d.ts +6 -6
  7. package/dist/index.js +16 -16
  8. package/dist/methods/hookEventListeners.d.ts +3 -3
  9. package/dist/methods/hookEventListeners.js +87 -87
  10. package/dist/methods/hookInteractionListeners.d.ts +3 -3
  11. package/dist/methods/hookInteractionListeners.js +118 -118
  12. package/dist/methods/publishInteractions.d.ts +7 -7
  13. package/dist/methods/publishInteractions.js +238 -238
  14. package/dist/types/Button.d.ts +18 -18
  15. package/dist/types/Button.js +31 -31
  16. package/dist/types/ButtonBuilder.d.ts +29 -29
  17. package/dist/types/ButtonBuilder.js +42 -42
  18. package/dist/types/ChatInput/ChatInput.d.ts +15 -15
  19. package/dist/types/ChatInput/ChatInput.js +20 -20
  20. package/dist/types/ChatInput/ChatInputOptions.d.ts +162 -162
  21. package/dist/types/ChatInput/ChatInputOptions.js +161 -161
  22. package/dist/types/CustomEvent.d.ts +13 -13
  23. package/dist/types/CustomEvent.js +19 -19
  24. package/dist/types/Event.d.ts +263 -263
  25. package/dist/types/Event.js +22 -22
  26. package/dist/types/Interaction.d.ts +47 -47
  27. package/dist/types/Interaction.js +24 -24
  28. package/dist/types/InteractionLocale.d.ts +25 -25
  29. package/dist/types/InteractionLocale.js +14 -14
  30. package/dist/types/Locale.d.ts +21 -21
  31. package/dist/types/Locale.js +38 -38
  32. package/dist/types/MessageContextMenu.d.ts +14 -14
  33. package/dist/types/MessageContextMenu.js +18 -18
  34. package/dist/types/Modal.d.ts +22 -22
  35. package/dist/types/Modal.js +29 -29
  36. package/dist/types/ModalBuilder.d.ts +30 -30
  37. package/dist/types/ModalBuilder.js +42 -42
  38. package/dist/types/SelectMenu.d.ts +18 -18
  39. package/dist/types/SelectMenu.d.ts.map +1 -1
  40. package/dist/types/SelectMenu.js +31 -31
  41. package/dist/types/SelectMenu.js.map +1 -1
  42. package/dist/types/SelectMenuBuilder.d.ts +27 -27
  43. package/dist/types/SelectMenuBuilder.d.ts.map +1 -1
  44. package/dist/types/SelectMenuBuilder.js +42 -42
  45. package/dist/types/SelectMenuBuilder.js.map +1 -1
  46. package/dist/types/UserContextMenu.d.ts +14 -14
  47. package/dist/types/UserContextMenu.js +18 -18
  48. package/dist/utils/MemoryStore.d.ts +8 -8
  49. package/dist/utils/MemoryStore.js +29 -29
  50. package/dist/utils/UtilTypes.d.ts +7 -7
  51. package/dist/utils/UtilTypes.js +2 -2
  52. package/dist/utils/customId.d.ts +7 -7
  53. package/dist/utils/customId.js +45 -45
  54. package/dist/utils/permissions.d.ts +2 -2
  55. package/dist/utils/permissions.js +8 -8
  56. package/dist/utils/recursiveImport.d.ts +4 -4
  57. package/dist/utils/recursiveImport.js +26 -26
  58. package/package.json +2 -2
  59. package/readme.md +5 -5
  60. package/src/types/SelectMenu.ts +2 -2
  61. package/src/types/SelectMenuBuilder.ts +3 -3
  62. package/test.js +0 -34
@@ -1,30 +1,30 @@
1
- import { ButtonComponentData, ButtonStyle } from "discord.js";
2
- import { NamespaceEnums } from "../../generated/namespaceData";
3
- import { DBIButton } from "./Button";
4
- export declare type DBIButtonOverrides = {
5
- style?: ButtonStyle;
6
- } & Omit<ButtonComponentData, "customId" | "type" | "style">;
7
- export declare class DBIButtonBuilder<TNamespace extends NamespaceEnums> {
8
- component: DBIButton<TNamespace>;
9
- overrides: DBIButtonOverrides;
10
- reference: {
11
- data: (string | number | object)[];
12
- ttl?: number;
13
- };
14
- constructor(arg: {
15
- component: DBIButton<TNamespace>;
16
- overrides?: DBIButtonOverrides;
17
- reference?: {
18
- data: (string | number | object)[];
19
- ttl?: number;
20
- };
21
- });
22
- setTTL(ttl: number): DBIButtonBuilder<TNamespace>;
23
- addTTL(ttl: number): DBIButtonBuilder<TNamespace>;
24
- setData(...data: (string | number | object)[]): DBIButtonBuilder<TNamespace>;
25
- addData(...data: (string | number | object)[]): DBIButtonBuilder<TNamespace>;
26
- setOverrides(overrides: DBIButtonOverrides): DBIButtonBuilder<TNamespace>;
27
- addOverrides(overrides: DBIButtonOverrides): DBIButtonBuilder<TNamespace>;
28
- toJSON(): ButtonComponentData;
29
- }
1
+ import { ButtonComponentData, ButtonStyle } from "discord.js";
2
+ import { NamespaceEnums } from "../../generated/namespaceData";
3
+ import { DBIButton } from "./Button";
4
+ export declare type DBIButtonOverrides = {
5
+ style?: ButtonStyle;
6
+ } & Omit<ButtonComponentData, "customId" | "type" | "style">;
7
+ export declare class DBIButtonBuilder<TNamespace extends NamespaceEnums> {
8
+ component: DBIButton<TNamespace>;
9
+ overrides: DBIButtonOverrides;
10
+ reference: {
11
+ data: (string | number | object)[];
12
+ ttl?: number;
13
+ };
14
+ constructor(arg: {
15
+ component: DBIButton<TNamespace>;
16
+ overrides?: DBIButtonOverrides;
17
+ reference?: {
18
+ data: (string | number | object)[];
19
+ ttl?: number;
20
+ };
21
+ });
22
+ setTTL(ttl: number): DBIButtonBuilder<TNamespace>;
23
+ addTTL(ttl: number): DBIButtonBuilder<TNamespace>;
24
+ setData(...data: (string | number | object)[]): DBIButtonBuilder<TNamespace>;
25
+ addData(...data: (string | number | object)[]): DBIButtonBuilder<TNamespace>;
26
+ setOverrides(overrides: DBIButtonOverrides): DBIButtonBuilder<TNamespace>;
27
+ addOverrides(overrides: DBIButtonOverrides): DBIButtonBuilder<TNamespace>;
28
+ toJSON(): ButtonComponentData;
29
+ }
30
30
  //# sourceMappingURL=ButtonBuilder.d.ts.map
@@ -1,43 +1,43 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DBIButtonBuilder = void 0;
4
- const stuffs_1 = require("stuffs");
5
- class DBIButtonBuilder {
6
- component;
7
- overrides;
8
- reference;
9
- constructor(arg) {
10
- this.component = arg.component;
11
- this.overrides = arg.overrides ?? {};
12
- this.reference = arg.reference ?? { data: [] };
13
- }
14
- setTTL(ttl) {
15
- this.reference.ttl = ttl;
16
- return this;
17
- }
18
- addTTL(ttl) {
19
- this.reference.ttl = (this.reference.ttl ?? 0) + ttl;
20
- return this;
21
- }
22
- setData(...data) {
23
- this.reference.data = data;
24
- return this;
25
- }
26
- addData(...data) {
27
- this.reference.data = [...this.reference.data, ...data];
28
- return this;
29
- }
30
- setOverrides(overrides) {
31
- this.overrides = overrides;
32
- return this;
33
- }
34
- addOverrides(overrides) {
35
- this.overrides = (0, stuffs_1.defaultify)(overrides, this.overrides, true);
36
- return this;
37
- }
38
- toJSON() {
39
- return this.component.toJSON({ overrides: this.overrides, reference: this.reference });
40
- }
41
- }
42
- exports.DBIButtonBuilder = DBIButtonBuilder;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DBIButtonBuilder = void 0;
4
+ const stuffs_1 = require("stuffs");
5
+ class DBIButtonBuilder {
6
+ component;
7
+ overrides;
8
+ reference;
9
+ constructor(arg) {
10
+ this.component = arg.component;
11
+ this.overrides = arg.overrides ?? {};
12
+ this.reference = arg.reference ?? { data: [] };
13
+ }
14
+ setTTL(ttl) {
15
+ this.reference.ttl = ttl;
16
+ return this;
17
+ }
18
+ addTTL(ttl) {
19
+ this.reference.ttl = (this.reference.ttl ?? 0) + ttl;
20
+ return this;
21
+ }
22
+ setData(...data) {
23
+ this.reference.data = data;
24
+ return this;
25
+ }
26
+ addData(...data) {
27
+ this.reference.data = [...this.reference.data, ...data];
28
+ return this;
29
+ }
30
+ setOverrides(overrides) {
31
+ this.overrides = overrides;
32
+ return this;
33
+ }
34
+ addOverrides(overrides) {
35
+ this.overrides = (0, stuffs_1.defaultify)(overrides, this.overrides, true);
36
+ return this;
37
+ }
38
+ toJSON() {
39
+ return this.component.toJSON({ overrides: this.overrides, reference: this.reference });
40
+ }
41
+ }
42
+ exports.DBIButtonBuilder = DBIButtonBuilder;
43
43
  //# sourceMappingURL=ButtonBuilder.js.map
@@ -1,16 +1,16 @@
1
- import Discord from "discord.js";
2
- import { NamespaceEnums } from "../../../generated/namespaceData";
3
- import { DBI } from "../../DBI";
4
- import { DBIBaseInteraction, IDBIBaseExecuteCtx } from "../Interaction";
5
- export interface IDBIChatInputExecuteCtx<TNamespace extends NamespaceEnums> extends IDBIBaseExecuteCtx<TNamespace> {
6
- interaction: Discord.ChatInputCommandInteraction<"cached">;
7
- }
8
- export declare type TDBIChatInputOmitted<TNamespace extends NamespaceEnums> = Omit<DBIChatInput<TNamespace>, "type" | "dbi">;
9
- export declare class DBIChatInput<TNamespace extends NamespaceEnums> extends DBIBaseInteraction<TNamespace> {
10
- constructor(dbi: DBI<TNamespace, {}>, cfg: TDBIChatInputOmitted<TNamespace>);
11
- directMessages?: boolean;
12
- defaultMemberPermissions?: Discord.PermissionsString[];
13
- options?: any[];
14
- onExecute(ctx: IDBIChatInputExecuteCtx<TNamespace>): void;
15
- }
1
+ import Discord from "discord.js";
2
+ import { NamespaceEnums } from "../../../generated/namespaceData";
3
+ import { DBI } from "../../DBI";
4
+ import { DBIBaseInteraction, IDBIBaseExecuteCtx } from "../Interaction";
5
+ export interface IDBIChatInputExecuteCtx<TNamespace extends NamespaceEnums> extends IDBIBaseExecuteCtx<TNamespace> {
6
+ interaction: Discord.ChatInputCommandInteraction<"cached">;
7
+ }
8
+ export declare type TDBIChatInputOmitted<TNamespace extends NamespaceEnums> = Omit<DBIChatInput<TNamespace>, "type" | "dbi">;
9
+ export declare class DBIChatInput<TNamespace extends NamespaceEnums> extends DBIBaseInteraction<TNamespace> {
10
+ constructor(dbi: DBI<TNamespace, {}>, cfg: TDBIChatInputOmitted<TNamespace>);
11
+ directMessages?: boolean;
12
+ defaultMemberPermissions?: Discord.PermissionsString[];
13
+ options?: any[];
14
+ onExecute(ctx: IDBIChatInputExecuteCtx<TNamespace>): void;
15
+ }
16
16
  //# sourceMappingURL=ChatInput.d.ts.map
@@ -1,21 +1,21 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DBIChatInput = void 0;
4
- const Interaction_1 = require("../Interaction");
5
- class DBIChatInput extends Interaction_1.DBIBaseInteraction {
6
- constructor(dbi, cfg) {
7
- super(dbi, {
8
- ...cfg,
9
- type: "ChatInput",
10
- name: cfg.name.toLowerCase(),
11
- options: Array.isArray(cfg.options) ? cfg.options : []
12
- });
13
- this.directMessages = cfg.directMessages ?? dbi.config.defaults.directMessages;
14
- this.defaultMemberPermissions = cfg.defaultMemberPermissions ?? dbi.config.defaults.defaultMemberPermissions;
15
- }
16
- directMessages;
17
- defaultMemberPermissions;
18
- onExecute(ctx) { }
19
- }
20
- exports.DBIChatInput = DBIChatInput;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DBIChatInput = void 0;
4
+ const Interaction_1 = require("../Interaction");
5
+ class DBIChatInput extends Interaction_1.DBIBaseInteraction {
6
+ constructor(dbi, cfg) {
7
+ super(dbi, {
8
+ ...cfg,
9
+ type: "ChatInput",
10
+ name: cfg.name.toLowerCase(),
11
+ options: Array.isArray(cfg.options) ? cfg.options : []
12
+ });
13
+ this.directMessages = cfg.directMessages ?? dbi.config.defaults.directMessages;
14
+ this.defaultMemberPermissions = cfg.defaultMemberPermissions ?? dbi.config.defaults.defaultMemberPermissions;
15
+ }
16
+ directMessages;
17
+ defaultMemberPermissions;
18
+ onExecute(ctx) { }
19
+ }
20
+ exports.DBIChatInput = DBIChatInput;
21
21
  //# sourceMappingURL=ChatInput.js.map
@@ -1,163 +1,163 @@
1
- import Discord from "discord.js";
2
- import { NamespaceEnums } from "../../../generated/namespaceData";
3
- import { DBI } from "../../DBI";
4
- import { IDBIBaseExecuteCtx } from "../Interaction";
5
- export declare type TDBIValueName<T> = {
6
- value: T;
7
- name: string;
8
- };
9
- export declare type TDBIBaseOption = {
10
- name: string;
11
- description: string;
12
- required?: boolean;
13
- };
14
- export declare type TDBIMinMaxLength = {
15
- maxLength?: number;
16
- minLength?: number;
17
- };
18
- export declare type TDBIMinMaxValue = {
19
- maxValue?: number;
20
- minValue?: number;
21
- };
22
- export interface IDBICompleteCtx<TNamespace extends NamespaceEnums, TValueType = string | number> extends IDBIBaseExecuteCtx<TNamespace> {
23
- interaction: Discord.AutocompleteInteraction;
24
- value: TValueType;
25
- }
26
- export declare class DBIChatInputOptions<TNamespace extends NamespaceEnums> {
27
- dbi: DBI<TNamespace>;
28
- constructor(dbi: DBI<TNamespace>);
29
- stringAutocomplete(cfg: TDBIBaseOption & TDBIMinMaxLength & {
30
- onComplete(ctx: IDBICompleteCtx<TNamespace, string>): Promise<TDBIValueName<string>[]>;
31
- }): {
32
- type: Discord.ApplicationCommandOptionType;
33
- name: string;
34
- autocomplete: boolean;
35
- onComplete: (ctx: IDBICompleteCtx<TNamespace, string>) => Promise<TDBIValueName<string>[]>;
36
- description: string;
37
- maxLength: number;
38
- minLength: number;
39
- required: boolean;
40
- };
41
- stringChoices(cfg: TDBIBaseOption & TDBIMinMaxLength & {
42
- choices: TDBIValueName<string>[];
43
- }): {
44
- type: Discord.ApplicationCommandOptionType;
45
- name: string;
46
- choices: TDBIValueName<string>[];
47
- description: string;
48
- maxLength: number;
49
- minLength: number;
50
- required: boolean;
51
- };
52
- string(cfg: TDBIBaseOption & TDBIMinMaxLength): {
53
- type: Discord.ApplicationCommandOptionType;
54
- name: string;
55
- description: string;
56
- maxLength: number;
57
- minLength: number;
58
- required: boolean;
59
- };
60
- numberAutocomplete(cfg: TDBIBaseOption & TDBIMinMaxValue & {
61
- onComplete(ctx: IDBICompleteCtx<TNamespace, string>): Promise<TDBIValueName<number>[]>;
62
- }): {
63
- type: Discord.ApplicationCommandOptionType;
64
- name: string;
65
- autocomplete: boolean;
66
- onComplete: (ctx: IDBICompleteCtx<TNamespace, string>) => Promise<TDBIValueName<number>[]>;
67
- description: string;
68
- maxValue: number;
69
- minValue: number;
70
- required: boolean;
71
- };
72
- numberChoices(cfg: TDBIBaseOption & TDBIMinMaxValue & {
73
- choices: TDBIValueName<number>[];
74
- }): {
75
- type: Discord.ApplicationCommandOptionType;
76
- name: string;
77
- choices: TDBIValueName<number>[];
78
- description: string;
79
- maxValue: number;
80
- minValue: number;
81
- required: boolean;
82
- };
83
- number(cfg: TDBIBaseOption & TDBIMinMaxValue): {
84
- type: Discord.ApplicationCommandOptionType;
85
- name: string;
86
- description: string;
87
- maxValue: number;
88
- minValue: number;
89
- required: boolean;
90
- };
91
- integerAutocomplete(cfg: TDBIBaseOption & TDBIMinMaxValue & {
92
- onComplete(ctx: IDBICompleteCtx<TNamespace, string>): Promise<TDBIValueName<number>[]>;
93
- }): {
94
- type: Discord.ApplicationCommandOptionType;
95
- name: string;
96
- autocomplete: boolean;
97
- onComplete: (ctx: IDBICompleteCtx<TNamespace, string>) => Promise<TDBIValueName<number>[]>;
98
- description: string;
99
- maxValue: number;
100
- minValue: number;
101
- required: boolean;
102
- };
103
- integerChoices(cfg: TDBIBaseOption & TDBIMinMaxValue & {
104
- choices: TDBIValueName<number>[];
105
- }): {
106
- type: Discord.ApplicationCommandOptionType;
107
- name: string;
108
- choices: TDBIValueName<number>[];
109
- description: string;
110
- maxValue: number;
111
- minValue: number;
112
- required: boolean;
113
- };
114
- integer(cfg: TDBIBaseOption & TDBIMinMaxValue): {
115
- type: Discord.ApplicationCommandOptionType;
116
- name: string;
117
- description: string;
118
- maxValue: number;
119
- minValue: number;
120
- required: boolean;
121
- };
122
- boolean(cfg: TDBIBaseOption): {
123
- type: Discord.ApplicationCommandOptionType;
124
- name: string;
125
- description: string;
126
- required: boolean;
127
- };
128
- attachment(cfg: TDBIBaseOption): {
129
- type: Discord.ApplicationCommandOptionType;
130
- name: string;
131
- description: string;
132
- required: boolean;
133
- };
134
- channel(cfg: TDBIBaseOption & {
135
- channelTypes: Discord.ChannelType[];
136
- }): {
137
- type: Discord.ApplicationCommandOptionType;
138
- name: string;
139
- description: string;
140
- channelTypes: Discord.ChannelType[];
141
- channel_types: Discord.ChannelType[];
142
- required: boolean;
143
- };
144
- role(cfg: TDBIBaseOption): {
145
- type: Discord.ApplicationCommandOptionType;
146
- name: string;
147
- description: string;
148
- required: boolean;
149
- };
150
- mentionable(cfg: TDBIBaseOption): {
151
- type: Discord.ApplicationCommandOptionType;
152
- name: string;
153
- description: string;
154
- required: boolean;
155
- };
156
- user(cfg: TDBIBaseOption): {
157
- type: Discord.ApplicationCommandOptionType;
158
- name: string;
159
- description: string;
160
- required: boolean;
161
- };
162
- }
1
+ import Discord from "discord.js";
2
+ import { NamespaceEnums } from "../../../generated/namespaceData";
3
+ import { DBI } from "../../DBI";
4
+ import { IDBIBaseExecuteCtx } from "../Interaction";
5
+ export declare type TDBIValueName<T> = {
6
+ value: T;
7
+ name: string;
8
+ };
9
+ export declare type TDBIBaseOption = {
10
+ name: string;
11
+ description: string;
12
+ required?: boolean;
13
+ };
14
+ export declare type TDBIMinMaxLength = {
15
+ maxLength?: number;
16
+ minLength?: number;
17
+ };
18
+ export declare type TDBIMinMaxValue = {
19
+ maxValue?: number;
20
+ minValue?: number;
21
+ };
22
+ export interface IDBICompleteCtx<TNamespace extends NamespaceEnums, TValueType = string | number> extends IDBIBaseExecuteCtx<TNamespace> {
23
+ interaction: Discord.AutocompleteInteraction;
24
+ value: TValueType;
25
+ }
26
+ export declare class DBIChatInputOptions<TNamespace extends NamespaceEnums> {
27
+ dbi: DBI<TNamespace>;
28
+ constructor(dbi: DBI<TNamespace>);
29
+ stringAutocomplete(cfg: TDBIBaseOption & TDBIMinMaxLength & {
30
+ onComplete(ctx: IDBICompleteCtx<TNamespace, string>): Promise<TDBIValueName<string>[]>;
31
+ }): {
32
+ type: Discord.ApplicationCommandOptionType;
33
+ name: string;
34
+ autocomplete: boolean;
35
+ onComplete: (ctx: IDBICompleteCtx<TNamespace, string>) => Promise<TDBIValueName<string>[]>;
36
+ description: string;
37
+ maxLength: number;
38
+ minLength: number;
39
+ required: boolean;
40
+ };
41
+ stringChoices(cfg: TDBIBaseOption & TDBIMinMaxLength & {
42
+ choices: TDBIValueName<string>[];
43
+ }): {
44
+ type: Discord.ApplicationCommandOptionType;
45
+ name: string;
46
+ choices: TDBIValueName<string>[];
47
+ description: string;
48
+ maxLength: number;
49
+ minLength: number;
50
+ required: boolean;
51
+ };
52
+ string(cfg: TDBIBaseOption & TDBIMinMaxLength): {
53
+ type: Discord.ApplicationCommandOptionType;
54
+ name: string;
55
+ description: string;
56
+ maxLength: number;
57
+ minLength: number;
58
+ required: boolean;
59
+ };
60
+ numberAutocomplete(cfg: TDBIBaseOption & TDBIMinMaxValue & {
61
+ onComplete(ctx: IDBICompleteCtx<TNamespace, string>): Promise<TDBIValueName<number>[]>;
62
+ }): {
63
+ type: Discord.ApplicationCommandOptionType;
64
+ name: string;
65
+ autocomplete: boolean;
66
+ onComplete: (ctx: IDBICompleteCtx<TNamespace, string>) => Promise<TDBIValueName<number>[]>;
67
+ description: string;
68
+ maxValue: number;
69
+ minValue: number;
70
+ required: boolean;
71
+ };
72
+ numberChoices(cfg: TDBIBaseOption & TDBIMinMaxValue & {
73
+ choices: TDBIValueName<number>[];
74
+ }): {
75
+ type: Discord.ApplicationCommandOptionType;
76
+ name: string;
77
+ choices: TDBIValueName<number>[];
78
+ description: string;
79
+ maxValue: number;
80
+ minValue: number;
81
+ required: boolean;
82
+ };
83
+ number(cfg: TDBIBaseOption & TDBIMinMaxValue): {
84
+ type: Discord.ApplicationCommandOptionType;
85
+ name: string;
86
+ description: string;
87
+ maxValue: number;
88
+ minValue: number;
89
+ required: boolean;
90
+ };
91
+ integerAutocomplete(cfg: TDBIBaseOption & TDBIMinMaxValue & {
92
+ onComplete(ctx: IDBICompleteCtx<TNamespace, string>): Promise<TDBIValueName<number>[]>;
93
+ }): {
94
+ type: Discord.ApplicationCommandOptionType;
95
+ name: string;
96
+ autocomplete: boolean;
97
+ onComplete: (ctx: IDBICompleteCtx<TNamespace, string>) => Promise<TDBIValueName<number>[]>;
98
+ description: string;
99
+ maxValue: number;
100
+ minValue: number;
101
+ required: boolean;
102
+ };
103
+ integerChoices(cfg: TDBIBaseOption & TDBIMinMaxValue & {
104
+ choices: TDBIValueName<number>[];
105
+ }): {
106
+ type: Discord.ApplicationCommandOptionType;
107
+ name: string;
108
+ choices: TDBIValueName<number>[];
109
+ description: string;
110
+ maxValue: number;
111
+ minValue: number;
112
+ required: boolean;
113
+ };
114
+ integer(cfg: TDBIBaseOption & TDBIMinMaxValue): {
115
+ type: Discord.ApplicationCommandOptionType;
116
+ name: string;
117
+ description: string;
118
+ maxValue: number;
119
+ minValue: number;
120
+ required: boolean;
121
+ };
122
+ boolean(cfg: TDBIBaseOption): {
123
+ type: Discord.ApplicationCommandOptionType;
124
+ name: string;
125
+ description: string;
126
+ required: boolean;
127
+ };
128
+ attachment(cfg: TDBIBaseOption): {
129
+ type: Discord.ApplicationCommandOptionType;
130
+ name: string;
131
+ description: string;
132
+ required: boolean;
133
+ };
134
+ channel(cfg: TDBIBaseOption & {
135
+ channelTypes: Discord.ChannelType[];
136
+ }): {
137
+ type: Discord.ApplicationCommandOptionType;
138
+ name: string;
139
+ description: string;
140
+ channelTypes: Discord.ChannelType[];
141
+ channel_types: Discord.ChannelType[];
142
+ required: boolean;
143
+ };
144
+ role(cfg: TDBIBaseOption): {
145
+ type: Discord.ApplicationCommandOptionType;
146
+ name: string;
147
+ description: string;
148
+ required: boolean;
149
+ };
150
+ mentionable(cfg: TDBIBaseOption): {
151
+ type: Discord.ApplicationCommandOptionType;
152
+ name: string;
153
+ description: string;
154
+ required: boolean;
155
+ };
156
+ user(cfg: TDBIBaseOption): {
157
+ type: Discord.ApplicationCommandOptionType;
158
+ name: string;
159
+ description: string;
160
+ required: boolean;
161
+ };
162
+ }
163
163
  //# sourceMappingURL=ChatInputOptions.d.ts.map