@mostfeatured/dbi 0.0.75-dev.3 → 0.0.75-dev.5
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/types/Builders/ButtonBuilder.d.ts +3 -2
- package/dist/types/Builders/ButtonBuilder.d.ts.map +1 -1
- package/dist/types/Builders/ButtonBuilder.js.map +1 -1
- package/dist/types/Builders/ChannelSelectMenuBuilder.d.ts +3 -2
- package/dist/types/Builders/ChannelSelectMenuBuilder.d.ts.map +1 -1
- package/dist/types/Builders/ChannelSelectMenuBuilder.js.map +1 -1
- package/dist/types/Builders/MentionableSelectMenuBuilder.d.ts +3 -2
- package/dist/types/Builders/MentionableSelectMenuBuilder.d.ts.map +1 -1
- package/dist/types/Builders/MentionableSelectMenuBuilder.js.map +1 -1
- package/dist/types/Builders/ModalBuilder.d.ts +3 -2
- package/dist/types/Builders/ModalBuilder.d.ts.map +1 -1
- package/dist/types/Builders/ModalBuilder.js.map +1 -1
- package/dist/types/Builders/RoleSelectMenuBuilder.d.ts +2 -1
- package/dist/types/Builders/RoleSelectMenuBuilder.d.ts.map +1 -1
- package/dist/types/Builders/RoleSelectMenuBuilder.js.map +1 -1
- package/dist/types/Builders/StringSelectMenuBuilder.d.ts +3 -2
- package/dist/types/Builders/StringSelectMenuBuilder.d.ts.map +1 -1
- package/dist/types/Builders/StringSelectMenuBuilder.js.map +1 -1
- package/dist/types/Builders/UserSelectMenuBuilder.d.ts +3 -2
- package/dist/types/Builders/UserSelectMenuBuilder.d.ts.map +1 -1
- package/dist/types/Builders/UserSelectMenuBuilder.js.map +1 -1
- package/dist/types/Components/ChannelSelectMenu.d.ts +1 -1
- package/dist/types/Components/ChannelSelectMenu.d.ts.map +1 -1
- package/dist/types/Components/ChannelSelectMenu.js.map +1 -1
- package/dist/types/Components/MentionableSelectMenu.d.ts +1 -1
- package/dist/types/Components/MentionableSelectMenu.d.ts.map +1 -1
- package/dist/types/Components/MentionableSelectMenu.js.map +1 -1
- package/dist/utils/UtilTypes.d.ts +4 -1
- package/dist/utils/UtilTypes.d.ts.map +1 -1
- package/dist/utils/UtilTypes.js.map +1 -1
- package/package.json +1 -1
- package/src/types/Builders/ButtonBuilder.ts +2 -1
- package/src/types/Builders/ChannelSelectMenuBuilder.ts +3 -2
- package/src/types/Builders/MentionableSelectMenuBuilder.ts +3 -2
- package/src/types/Builders/ModalBuilder.ts +2 -1
- package/src/types/Builders/RoleSelectMenuBuilder.ts +2 -1
- package/src/types/Builders/StringSelectMenuBuilder.ts +3 -2
- package/src/types/Builders/UserSelectMenuBuilder.ts +3 -2
- package/src/types/Components/ChannelSelectMenu.ts +1 -1
- package/src/types/Components/MentionableSelectMenu.ts +1 -1
- package/src/utils/UtilTypes.ts +5 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ButtonComponentData, ButtonStyle } from "discord.js";
|
|
2
2
|
import { NamespaceEnums } from "../../../generated/namespaceData";
|
|
3
3
|
import { DBIButton } from "../Components/Button";
|
|
4
|
-
|
|
4
|
+
import { RecursivePartial } from "../../utils/UtilTypes";
|
|
5
|
+
export declare type DBIButtonOverrides = RecursivePartial<{
|
|
5
6
|
style?: ButtonStyle;
|
|
6
|
-
} & Omit<ButtonComponentData, "customId" | "type" | "style"
|
|
7
|
+
} & Omit<ButtonComponentData, "customId" | "type" | "style">>;
|
|
7
8
|
export declare class DBIButtonBuilder<TNamespace extends NamespaceEnums> {
|
|
8
9
|
component: DBIButton<TNamespace>;
|
|
9
10
|
overrides: DBIButtonOverrides;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonBuilder.d.ts","sourceRoot":"","sources":["../../../src/types/Builders/ButtonBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB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C,EAAE,GAAG,gBAAgB,CAAC,UAAU,CAAC;IAK5E,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,gBAAgB,CAAC,UAAU,CAAC;IAK5E,YAAY,CAAC,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAC,UAAU,CAAC;IAKzE,YAAY,CAAC,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAC,UAAU,CAAC;IAKzE,MAAM,IAAI,mBAAmB;CAI9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonBuilder.js","sourceRoot":"","sources":["../../../src/types/Builders/ButtonBuilder.ts"],"names":[],"mappings":";;;AACA,mCAAoC;
|
|
1
|
+
{"version":3,"file":"ButtonBuilder.js","sourceRoot":"","sources":["../../../src/types/Builders/ButtonBuilder.ts"],"names":[],"mappings":";;;AACA,mCAAoC;AAOpC,MAAa,gBAAgB;IAC3B,SAAS,CAAuB;IAChC,SAAS,CAAqB;IAC9B,SAAS,CAAuD;IAChE,YAAY,GAA2I;QACrJ,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;QACrC,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IACjD,CAAC;IAED,MAAM,CAAC,GAAW;QAChB,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,GAAG,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,GAAW;QAChB,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;QACrD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CAAC,GAAG,IAAkC;QAC3C,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CAAC,GAAG,IAAkC;QAC3C,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;QACxD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,YAAY,CAAC,SAA6B;QACxC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,YAAY,CAAC,SAA6B;QACxC,IAAI,CAAC,SAAS,GAAG,IAAA,mBAAU,EAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAC7D,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IACzF,CAAC;CAEF;AA5CD,4CA4CC","sourcesContent":["import { ButtonComponentData, ButtonStyle } from \"discord.js\";\r\nimport { defaultify } from \"stuffs\";\r\nimport { NamespaceEnums } from \"../../../generated/namespaceData\";\r\nimport { DBIButton } from \"../Components/Button\";\r\nimport { RecursivePartial } from \"../../utils/UtilTypes\";\r\n\r\nexport type DBIButtonOverrides = RecursivePartial<{ style?: ButtonStyle } & Omit<ButtonComponentData, \"customId\" | \"type\" | \"style\">>\r\n\r\nexport class DBIButtonBuilder<TNamespace extends NamespaceEnums> {\r\n component: DBIButton<TNamespace>\r\n overrides: DBIButtonOverrides;\r\n reference: { data: (string | number | object)[], ttl?: number };\r\n constructor(arg: { component: DBIButton<TNamespace>, overrides?: DBIButtonOverrides, reference?: { data: (string | number | object)[], ttl?: number } }) {\r\n this.component = arg.component;\r\n this.overrides = arg.overrides ?? {};\r\n this.reference = arg.reference ?? { data: [] };\r\n }\r\n\r\n setTTL(ttl: number): DBIButtonBuilder<TNamespace> {\r\n this.reference.ttl = ttl;\r\n return this;\r\n }\r\n\r\n addTTL(ttl: number): DBIButtonBuilder<TNamespace> {\r\n this.reference.ttl = (this.reference.ttl ?? 0) + ttl;\r\n return this;\r\n }\r\n\r\n setData(...data: (string | number | object)[]): DBIButtonBuilder<TNamespace> {\r\n this.reference.data = data;\r\n return this;\r\n }\r\n\r\n addData(...data: (string | number | object)[]): DBIButtonBuilder<TNamespace> {\r\n this.reference.data = [...this.reference.data, ...data];\r\n return this;\r\n }\r\n\r\n setOverrides(overrides: DBIButtonOverrides): DBIButtonBuilder<TNamespace> {\r\n this.overrides = overrides;\r\n return this;\r\n }\r\n\r\n addOverrides(overrides: DBIButtonOverrides): DBIButtonBuilder<TNamespace> {\r\n this.overrides = defaultify(overrides, this.overrides, true);\r\n return this;\r\n }\r\n\r\n toJSON(): ButtonComponentData {\r\n return this.component.toJSON({ overrides: this.overrides, reference: this.reference });\r\n }\r\n\r\n}"]}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { BaseSelectMenuComponentData, ChannelSelectMenuComponentData } from "discord.js";
|
|
2
2
|
import { NamespaceEnums } from "../../../generated/namespaceData";
|
|
3
3
|
import { DBIChannelSelectMenu } from "../Components/ChannelSelectMenu";
|
|
4
|
-
|
|
4
|
+
import { RecursivePartial } from "../../utils/UtilTypes";
|
|
5
|
+
export declare type DBIChannelSelectMenuOverrides = RecursivePartial<Omit<ChannelSelectMenuComponentData, "customId" | "type">>;
|
|
5
6
|
export declare class DBIChannelSelectMenuBuilder<TNamespace extends NamespaceEnums> {
|
|
6
7
|
component: DBIChannelSelectMenu<TNamespace>;
|
|
7
|
-
overrides:
|
|
8
|
+
overrides: DBIChannelSelectMenuOverrides;
|
|
8
9
|
reference: {
|
|
9
10
|
data: (string | number | object)[];
|
|
10
11
|
ttl?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelSelectMenuBuilder.d.ts","sourceRoot":"","sources":["../../../src/types/Builders/ChannelSelectMenuBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAEzF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"ChannelSelectMenuBuilder.d.ts","sourceRoot":"","sources":["../../../src/types/Builders/ChannelSelectMenuBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAEzF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,oBAAY,6BAA6B,GAAI,gBAAgB,CAAC,IAAI,CAAC,8BAA8B,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC,CAAA;AAExH,qBAAa,2BAA2B,CAAC,UAAU,SAAS,cAAc;IACxE,SAAS,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAA;IAC3C,SAAS,EAAE,6BAA6B,CAAC;IACzC,SAAS,EAAE;QAAE,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;gBACpD,GAAG,EAAE;QAAE,SAAS,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAC;QAAC,SAAS,CAAC,EAAE,6BAA6B,CAAC;QAAC,SAAS,CAAC,EAAE;YAAE,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;YAAC,GAAG,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE;IAM7K,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,2BAA2B,CAAC,UAAU,CAAC;IAK5D,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,2BAA2B,CAAC,UAAU,CAAC;IAK5D,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,2BAA2B,CAAC,UAAU,CAAC;IAKvF,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,2BAA2B,CAAC,UAAU,CAAC;IAKvF,YAAY,CAAC,SAAS,EAAE,6BAA6B,GAAG,2BAA2B,CAAC,UAAU,CAAC;IAK/F,YAAY,CAAC,SAAS,EAAE,6BAA6B,GAAG,2BAA2B,CAAC,UAAU,CAAC;IAK/F,MAAM,IAAI,2BAA2B;CAItC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelSelectMenuBuilder.js","sourceRoot":"","sources":["../../../src/types/Builders/ChannelSelectMenuBuilder.ts"],"names":[],"mappings":";;;AACA,mCAAoC;
|
|
1
|
+
{"version":3,"file":"ChannelSelectMenuBuilder.js","sourceRoot":"","sources":["../../../src/types/Builders/ChannelSelectMenuBuilder.ts"],"names":[],"mappings":";;;AACA,mCAAoC;AAOpC,MAAa,2BAA2B;IACtC,SAAS,CAAkC;IAC3C,SAAS,CAAgC;IACzC,SAAS,CAAuD;IAChE,YAAY,GAAiK;QAC3K,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;QACrC,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IACjD,CAAC;IAED,MAAM,CAAC,GAAW;QAChB,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,GAAG,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,GAAW;QAChB,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;QACrD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CAAC,GAAG,IAAkC;QAC3C,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CAAC,GAAG,IAAkC;QAC3C,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;QACxD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,YAAY,CAAC,SAAwC;QACnD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,YAAY,CAAC,SAAwC;QACnD,IAAI,CAAC,SAAS,GAAG,IAAA,mBAAU,EAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAC7D,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,SAAgB,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IAChG,CAAC;CAEF;AA5CD,kEA4CC","sourcesContent":["import { BaseSelectMenuComponentData, ChannelSelectMenuComponentData } from \"discord.js\";\r\nimport { defaultify } from \"stuffs\";\r\nimport { NamespaceEnums } from \"../../../generated/namespaceData\";\r\nimport { DBIChannelSelectMenu } from \"../Components/ChannelSelectMenu\";\r\nimport { RecursivePartial } from \"../../utils/UtilTypes\";\r\n\r\nexport type DBIChannelSelectMenuOverrides = RecursivePartial<Omit<ChannelSelectMenuComponentData, \"customId\" | \"type\">>\r\n\r\nexport class DBIChannelSelectMenuBuilder<TNamespace extends NamespaceEnums> {\r\n component: DBIChannelSelectMenu<TNamespace>\r\n overrides: DBIChannelSelectMenuOverrides;\r\n reference: { data: (string | number | object)[], ttl?: number };\r\n constructor(arg: { component: DBIChannelSelectMenu<TNamespace>, overrides?: DBIChannelSelectMenuOverrides, reference?: { data: (string | number | object)[], ttl?: number } }) {\r\n this.component = arg.component;\r\n this.overrides = arg.overrides ?? {};\r\n this.reference = arg.reference ?? { data: [] };\r\n }\r\n\r\n setTTL(ttl: number): DBIChannelSelectMenuBuilder<TNamespace> {\r\n this.reference.ttl = ttl;\r\n return this;\r\n }\r\n\r\n addTTL(ttl: number): DBIChannelSelectMenuBuilder<TNamespace> {\r\n this.reference.ttl = (this.reference.ttl ?? 0) + ttl;\r\n return this;\r\n }\r\n\r\n setData(...data: (string | number | object)[]): DBIChannelSelectMenuBuilder<TNamespace> {\r\n this.reference.data = data;\r\n return this;\r\n }\r\n\r\n addData(...data: (string | number | object)[]): DBIChannelSelectMenuBuilder<TNamespace> {\r\n this.reference.data = [...this.reference.data, ...data];\r\n return this;\r\n }\r\n\r\n setOverrides(overrides: DBIChannelSelectMenuOverrides): DBIChannelSelectMenuBuilder<TNamespace> {\r\n this.overrides = overrides;\r\n return this;\r\n }\r\n\r\n addOverrides(overrides: DBIChannelSelectMenuOverrides): DBIChannelSelectMenuBuilder<TNamespace> {\r\n this.overrides = defaultify(overrides, this.overrides, true);\r\n return this;\r\n }\r\n\r\n toJSON(): BaseSelectMenuComponentData {\r\n return this.component.toJSON({ overrides: this.overrides as any, reference: this.reference });\r\n }\r\n\r\n}"]}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { BaseSelectMenuComponentData, MentionableSelectMenuComponentData } from "discord.js";
|
|
2
2
|
import { NamespaceEnums } from "../../../generated/namespaceData";
|
|
3
3
|
import { DBIMentionableSelectMenu } from "../Components/MentionableSelectMenu";
|
|
4
|
-
|
|
4
|
+
import { RecursivePartial } from "../../utils/UtilTypes";
|
|
5
|
+
export declare type DBIMentionableSelectMenuOverrides = RecursivePartial<Omit<MentionableSelectMenuComponentData, "customId" | "type">>;
|
|
5
6
|
export declare class DBIMentionableSelectMenuBuilder<TNamespace extends NamespaceEnums> {
|
|
6
7
|
component: DBIMentionableSelectMenu<TNamespace>;
|
|
7
|
-
overrides:
|
|
8
|
+
overrides: DBIMentionableSelectMenuOverrides;
|
|
8
9
|
reference: {
|
|
9
10
|
data: (string | number | object)[];
|
|
10
11
|
ttl?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MentionableSelectMenuBuilder.d.ts","sourceRoot":"","sources":["../../../src/types/Builders/MentionableSelectMenuBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,kCAAkC,EAAE,MAAM,YAAY,CAAC;AAE7F,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"MentionableSelectMenuBuilder.d.ts","sourceRoot":"","sources":["../../../src/types/Builders/MentionableSelectMenuBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,kCAAkC,EAAE,MAAM,YAAY,CAAC;AAE7F,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,oBAAY,iCAAiC,GAAI,gBAAgB,CAAC,IAAI,CAAC,kCAAkC,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC,CAAA;AAEhI,qBAAa,+BAA+B,CAAC,UAAU,SAAS,cAAc;IAC5E,SAAS,EAAE,wBAAwB,CAAC,UAAU,CAAC,CAAA;IAC/C,SAAS,EAAE,iCAAiC,CAAC;IAC7C,SAAS,EAAE;QAAE,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;gBACpD,GAAG,EAAE;QAAE,SAAS,EAAE,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAAC,SAAS,CAAC,EAAE,iCAAiC,CAAC;QAAC,SAAS,CAAC,EAAE;YAAE,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;YAAC,GAAG,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE;IAMrL,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,+BAA+B,CAAC,UAAU,CAAC;IAKhE,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,+BAA+B,CAAC,UAAU,CAAC;IAKhE,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,+BAA+B,CAAC,UAAU,CAAC;IAK3F,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,+BAA+B,CAAC,UAAU,CAAC;IAK3F,YAAY,CAAC,SAAS,EAAE,iCAAiC,GAAG,+BAA+B,CAAC,UAAU,CAAC;IAKvG,YAAY,CAAC,SAAS,EAAE,iCAAiC,GAAG,+BAA+B,CAAC,UAAU,CAAC;IAKvG,MAAM,IAAI,2BAA2B;CAItC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MentionableSelectMenuBuilder.js","sourceRoot":"","sources":["../../../src/types/Builders/MentionableSelectMenuBuilder.ts"],"names":[],"mappings":";;;AACA,mCAAoC;
|
|
1
|
+
{"version":3,"file":"MentionableSelectMenuBuilder.js","sourceRoot":"","sources":["../../../src/types/Builders/MentionableSelectMenuBuilder.ts"],"names":[],"mappings":";;;AACA,mCAAoC;AAO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,EAAE,SAAS,EAAE,IAAI,CAAC,SAAgB,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IAChG,CAAC;CAEF;AA5CD,0EA4CC","sourcesContent":["import { BaseSelectMenuComponentData, MentionableSelectMenuComponentData } from \"discord.js\";\r\nimport { defaultify } from \"stuffs\";\r\nimport { NamespaceEnums } from \"../../../generated/namespaceData\";\r\nimport { DBIMentionableSelectMenu } from \"../Components/MentionableSelectMenu\";\r\nimport { RecursivePartial } from \"../../utils/UtilTypes\";\r\n\r\nexport type DBIMentionableSelectMenuOverrides = RecursivePartial<Omit<MentionableSelectMenuComponentData, \"customId\" | \"type\">>\r\n\r\nexport class DBIMentionableSelectMenuBuilder<TNamespace extends NamespaceEnums> {\r\n component: DBIMentionableSelectMenu<TNamespace>\r\n overrides: DBIMentionableSelectMenuOverrides;\r\n reference: { data: (string | number | object)[], ttl?: number };\r\n constructor(arg: { component: DBIMentionableSelectMenu<TNamespace>, overrides?: DBIMentionableSelectMenuOverrides, reference?: { data: (string | number | object)[], ttl?: number } }) {\r\n this.component = arg.component;\r\n this.overrides = arg.overrides ?? {};\r\n this.reference = arg.reference ?? { data: [] };\r\n }\r\n\r\n setTTL(ttl: number): DBIMentionableSelectMenuBuilder<TNamespace> {\r\n this.reference.ttl = ttl;\r\n return this;\r\n }\r\n\r\n addTTL(ttl: number): DBIMentionableSelectMenuBuilder<TNamespace> {\r\n this.reference.ttl = (this.reference.ttl ?? 0) + ttl;\r\n return this;\r\n }\r\n\r\n setData(...data: (string | number | object)[]): DBIMentionableSelectMenuBuilder<TNamespace> {\r\n this.reference.data = data;\r\n return this;\r\n }\r\n\r\n addData(...data: (string | number | object)[]): DBIMentionableSelectMenuBuilder<TNamespace> {\r\n this.reference.data = [...this.reference.data, ...data];\r\n return this;\r\n }\r\n\r\n setOverrides(overrides: DBIMentionableSelectMenuOverrides): DBIMentionableSelectMenuBuilder<TNamespace> {\r\n this.overrides = overrides;\r\n return this;\r\n }\r\n\r\n addOverrides(overrides: DBIMentionableSelectMenuOverrides): DBIMentionableSelectMenuBuilder<TNamespace> {\r\n this.overrides = defaultify(overrides, this.overrides, true);\r\n return this;\r\n }\r\n\r\n toJSON(): BaseSelectMenuComponentData {\r\n return this.component.toJSON({ overrides: this.overrides as any, reference: this.reference });\r\n }\r\n\r\n}"]}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ActionRowData, APIActionRowComponent, APITextInputComponent, JSONEncodable, ModalActionRowComponentData, ModalComponentData } from "discord.js";
|
|
2
2
|
import { NamespaceEnums } from "../../../generated/namespaceData";
|
|
3
3
|
import { DBIModal } from "../Components/Modal";
|
|
4
|
-
|
|
4
|
+
import { RecursivePartial } from "../../utils/UtilTypes";
|
|
5
|
+
export declare type DBIModalOverrides = RecursivePartial<{
|
|
5
6
|
components?: (JSONEncodable<APIActionRowComponent<APITextInputComponent>> | ActionRowData<ModalActionRowComponentData>)[];
|
|
6
7
|
title?: string;
|
|
7
|
-
} & Omit<ModalComponentData, "customId" | "type" | "title" | "components"
|
|
8
|
+
} & Omit<ModalComponentData, "customId" | "type" | "title" | "components">>;
|
|
8
9
|
export declare class DBIModalBuilder<TNamespace extends NamespaceEnums> {
|
|
9
10
|
component: DBIModal<TNamespace>;
|
|
10
11
|
overrides: DBIModalOverrides;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalBuilder.d.ts","sourceRoot":"","sources":["../../../src/types/Builders/ModalBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,aAAa,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEzJ,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"ModalBuilder.d.ts","sourceRoot":"","sources":["../../../src/types/Builders/Modal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MAAM,GAAG,eAAe,CAAC,UAAU,CAAC;IAKhD,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,eAAe,CAAC,UAAU,CAAC;IAK3E,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,eAAe,CAAC,UAAU,CAAC;IAK3E,YAAY,CAAC,SAAS,EAAE,iBAAiB,GAAG,eAAe,CAAC,UAAU,CAAC;IAKvE,YAAY,CAAC,SAAS,EAAE,iBAAiB,GAAG,eAAe,CAAC,UAAU,CAAC;IAKvE,MAAM,IAAI,kBAAkB;CAI7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalBuilder.js","sourceRoot":"","sources":["../../../src/types/Builders/ModalBuilder.ts"],"names":[],"mappings":";;;AACA,mCAAoC;
|
|
1
|
+
{"version":3,"file":"ModalBuilder.js","sourceRoot":"","sources":["../../../src/types/Builders/ModalBuilder.ts"],"names":[],"mappings":";;;AACA,mCAAoC;AAOpC,MAAa,eAAe;IAC1B,SAAS,CAAsB;IAC/B,SAAS,CAAoB;IAC7B,SAAS,CAAuD;IAChE,YAAY,GAAyI;QACnJ,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;QACrC,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IACjD,CAAC;IAED,MAAM,CAAC,GAAW;QAChB,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,GAAG,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,GAAW;QAChB,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;QACrD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CAAC,GAAG,IAAkC;QAC3C,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CAAC,GAAG,IAAkC;QAC3C,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;QACxD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,YAAY,CAAC,SAA4B;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,YAAY,CAAC,SAA4B;QACvC,IAAI,CAAC,SAAS,GAAG,IAAA,mBAAU,EAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAC7D,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IACzF,CAAC;CAEF;AA5CD,0CA4CC","sourcesContent":["import { ActionRowData, APIActionRowComponent, APITextInputComponent, JSONEncodable, ModalActionRowComponentData, ModalComponentData } from \"discord.js\";\r\nimport { defaultify } from \"stuffs\";\r\nimport { NamespaceEnums } from \"../../../generated/namespaceData\";\r\nimport { DBIModal } from \"../Components/Modal\";\r\nimport { RecursivePartial } from \"../../utils/UtilTypes\";\r\n\r\nexport type DBIModalOverrides = RecursivePartial<{ components?: (JSONEncodable<APIActionRowComponent<APITextInputComponent>> | ActionRowData<ModalActionRowComponentData>)[], title?: string } & Omit<ModalComponentData, \"customId\" | \"type\" | \"title\" | \"components\">>\r\n\r\nexport class DBIModalBuilder<TNamespace extends NamespaceEnums> {\r\n component: DBIModal<TNamespace>\r\n overrides: DBIModalOverrides;\r\n reference: { data: (string | number | object)[], ttl?: number };\r\n constructor(arg: { component: DBIModal<TNamespace>, overrides?: DBIModalOverrides, reference?: { data: (string | number | object)[], ttl?: number } }) {\r\n this.component = arg.component;\r\n this.overrides = arg.overrides ?? {};\r\n this.reference = arg.reference ?? { data: [] };\r\n }\r\n\r\n setTTL(ttl: number): DBIModalBuilder<TNamespace> {\r\n this.reference.ttl = ttl;\r\n return this;\r\n }\r\n\r\n addTTL(ttl: number): DBIModalBuilder<TNamespace> {\r\n this.reference.ttl = (this.reference.ttl ?? 0) + ttl;\r\n return this;\r\n }\r\n\r\n setData(...data: (string | number | object)[]): DBIModalBuilder<TNamespace> {\r\n this.reference.data = data;\r\n return this;\r\n }\r\n\r\n addData(...data: (string | number | object)[]): DBIModalBuilder<TNamespace> {\r\n this.reference.data = [...this.reference.data, ...data];\r\n return this;\r\n }\r\n\r\n setOverrides(overrides: DBIModalOverrides): DBIModalBuilder<TNamespace> {\r\n this.overrides = overrides;\r\n return this;\r\n }\r\n\r\n addOverrides(overrides: DBIModalOverrides): DBIModalBuilder<TNamespace> {\r\n this.overrides = defaultify(overrides, this.overrides, true);\r\n return this;\r\n }\r\n\r\n toJSON(): ModalComponentData {\r\n return this.component.toJSON({ overrides: this.overrides, reference: this.reference });\r\n }\r\n\r\n}"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseSelectMenuComponentData, RoleSelectMenuComponentData } from "discord.js";
|
|
2
2
|
import { NamespaceEnums } from "../../../generated/namespaceData";
|
|
3
3
|
import { DBIRoleSelectMenu } from "../Components/RoleSelectMenu";
|
|
4
|
-
|
|
4
|
+
import { RecursivePartial } from "../../utils/UtilTypes";
|
|
5
|
+
export declare type DBIRoleSelectMenuOverrides = RecursivePartial<Omit<RoleSelectMenuComponentData, "customId" | "type">>;
|
|
5
6
|
export declare class DBIRoleSelectMenuBuilder<TNamespace extends NamespaceEnums> {
|
|
6
7
|
component: DBIRoleSelectMenu<TNamespace>;
|
|
7
8
|
overrides: Partial<DBIRoleSelectMenuOverrides>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoleSelectMenuBuilder.d.ts","sourceRoot":"","sources":["../../../src/types/Builders/RoleSelectMenuBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAEtF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"RoleSelectMenuBuilder.d.ts","sourceRoot":"","sources":["../../../src/types/Builders/RoleSelectMenuBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAEtF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,oBAAY,0BAA0B,GAAI,gBAAgB,CAAC,IAAI,CAAC,2BAA2B,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC,CAAA;AAElH,qBAAa,wBAAwB,CAAC,UAAU,SAAS,cAAc;IACrE,SAAS,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAA;IACxC,SAAS,EAAE,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAC/C,SAAS,EAAE;QAAE,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;gBACpD,GAAG,EAAE;QAAE,SAAS,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;QAAC,SAAS,CAAC,EAAE,0BAA0B,CAAC;QAAC,SAAS,CAAC,EAAE;YAAE,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;YAAC,GAAG,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE;IAMvK,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,wBAAwB,CAAC,UAAU,CAAC;IAKzD,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,wBAAwB,CAAC,UAAU,CAAC;IAKzD,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,wBAAwB,CAAC,UAAU,CAAC;IAKpF,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,wBAAwB,CAAC,UAAU,CAAC;IAKpF,YAAY,CAAC,SAAS,EAAE,0BAA0B,GAAG,wBAAwB,CAAC,UAAU,CAAC;IAKzF,YAAY,CAAC,SAAS,EAAE,0BAA0B,GAAG,wBAAwB,CAAC,UAAU,CAAC;IAKzF,MAAM,IAAI,2BAA2B;CAItC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoleSelectMenuBuilder.js","sourceRoot":"","sources":["../../../src/types/Builders/RoleSelectMenuBuilder.ts"],"names":[],"mappings":";;;AACA,mCAAoC;
|
|
1
|
+
{"version":3,"file":"RoleSelectMenuBuilder.js","sourceRoot":"","sources":["../../../src/types/Builders/RoleSelectMenuBuilder.ts"],"names":[],"mappings":";;;AACA,mCAAoC;AAOpC,MAAa,wBAAwB;IACnC,SAAS,CAA+B;IACxC,SAAS,CAAsC;IAC/C,SAAS,CAAuD;IAChE,YAAY,GAA2J;QACrK,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;QACrC,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IACjD,CAAC;IAED,MAAM,CAAC,GAAW;QAChB,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,GAAG,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,GAAW;QAChB,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;QACrD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CAAC,GAAG,IAAkC;QAC3C,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CAAC,GAAG,IAAkC;QAC3C,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;QACxD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,YAAY,CAAC,SAAqC;QAChD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,YAAY,CAAC,SAAqC;QAChD,IAAI,CAAC,SAAS,GAAG,IAAA,mBAAU,EAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAC7D,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,SAAgB,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IAChG,CAAC;CAEF;AA5CD,4DA4CC","sourcesContent":["import { BaseSelectMenuComponentData, RoleSelectMenuComponentData } from \"discord.js\";\r\nimport { defaultify } from \"stuffs\";\r\nimport { NamespaceEnums } from \"../../../generated/namespaceData\";\r\nimport { DBIRoleSelectMenu } from \"../Components/RoleSelectMenu\";\r\nimport { RecursivePartial } from \"../../utils/UtilTypes\";\r\n\r\nexport type DBIRoleSelectMenuOverrides = RecursivePartial<Omit<RoleSelectMenuComponentData, \"customId\" | \"type\">>\r\n\r\nexport class DBIRoleSelectMenuBuilder<TNamespace extends NamespaceEnums> {\r\n component: DBIRoleSelectMenu<TNamespace>\r\n overrides: Partial<DBIRoleSelectMenuOverrides>;\r\n reference: { data: (string | number | object)[], ttl?: number };\r\n constructor(arg: { component: DBIRoleSelectMenu<TNamespace>, overrides?: DBIRoleSelectMenuOverrides, reference?: { data: (string | number | object)[], ttl?: number } }) {\r\n this.component = arg.component;\r\n this.overrides = arg.overrides ?? {};\r\n this.reference = arg.reference ?? { data: [] };\r\n }\r\n\r\n setTTL(ttl: number): DBIRoleSelectMenuBuilder<TNamespace> {\r\n this.reference.ttl = ttl;\r\n return this;\r\n }\r\n\r\n addTTL(ttl: number): DBIRoleSelectMenuBuilder<TNamespace> {\r\n this.reference.ttl = (this.reference.ttl ?? 0) + ttl;\r\n return this;\r\n }\r\n\r\n setData(...data: (string | number | object)[]): DBIRoleSelectMenuBuilder<TNamespace> {\r\n this.reference.data = data;\r\n return this;\r\n }\r\n\r\n addData(...data: (string | number | object)[]): DBIRoleSelectMenuBuilder<TNamespace> {\r\n this.reference.data = [...this.reference.data, ...data];\r\n return this;\r\n }\r\n\r\n setOverrides(overrides: DBIRoleSelectMenuOverrides): DBIRoleSelectMenuBuilder<TNamespace> {\r\n this.overrides = overrides;\r\n return this;\r\n }\r\n\r\n addOverrides(overrides: DBIRoleSelectMenuOverrides): DBIRoleSelectMenuBuilder<TNamespace> {\r\n this.overrides = defaultify(overrides, this.overrides, true);\r\n return this;\r\n }\r\n\r\n toJSON(): BaseSelectMenuComponentData {\r\n return this.component.toJSON({ overrides: this.overrides as any, reference: this.reference });\r\n }\r\n\r\n}"]}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { BaseSelectMenuComponentData, StringSelectMenuComponentData } from "discord.js";
|
|
2
2
|
import { NamespaceEnums } from "../../../generated/namespaceData";
|
|
3
3
|
import { DBIStringSelectMenu } from "../Components/StringSelectMenu";
|
|
4
|
-
|
|
4
|
+
import { RecursivePartial } from "../../utils/UtilTypes";
|
|
5
|
+
export declare type DBIStringSelectMenuOverrides = RecursivePartial<Omit<StringSelectMenuComponentData, "customId" | "type">>;
|
|
5
6
|
export declare class DBIStringSelectMenuBuilder<TNamespace extends NamespaceEnums> {
|
|
6
7
|
component: DBIStringSelectMenu<TNamespace>;
|
|
7
|
-
overrides:
|
|
8
|
+
overrides: DBIStringSelectMenuOverrides;
|
|
8
9
|
reference: {
|
|
9
10
|
data: (string | number | object)[];
|
|
10
11
|
ttl?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringSelectMenuBuilder.d.ts","sourceRoot":"","sources":["../../../src/types/Builders/StringSelectMenuBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAExF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"StringSelectMenuBuilder.d.ts","sourceRoot":"","sources":["../../../src/types/Builders/StringSelectMenuBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAExF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,oBAAY,4BAA4B,GAAI,gBAAgB,CAAC,IAAI,CAAC,6BAA6B,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC,CAAA;AAEtH,qBAAa,0BAA0B,CAAC,UAAU,SAAS,cAAc;IACvE,SAAS,EAAE,mBAAmB,CAAC,UAAU,CAAC,CAAA;IAC1C,SAAS,EAAE,4BAA4B,CAAC;IACxC,SAAS,EAAE;QAAE,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;gBACpD,GAAG,EAAE;QAAE,SAAS,EAAE,mBAAmB,CAAC,UAAU,CAAC,CAAC;QAAC,SAAS,CAAC,EAAE,4BAA4B,CAAC;QAAC,SAAS,CAAC,EAAE;YAAE,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;YAAC,GAAG,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE;IAM3K,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,0BAA0B,CAAC,UAAU,CAAC;IAK3D,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,0BAA0B,CAAC,UAAU,CAAC;IAK3D,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,0BAA0B,CAAC,UAAU,CAAC;IAKtF,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,0BAA0B,CAAC,UAAU,CAAC;IAKtF,YAAY,CAAC,SAAS,EAAE,4BAA4B,GAAG,0BAA0B,CAAC,UAAU,CAAC;IAK7F,YAAY,CAAC,SAAS,EAAE,4BAA4B,GAAG,0BAA0B,CAAC,UAAU,CAAC;IAK7F,MAAM,IAAI,2BAA2B;CAItC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringSelectMenuBuilder.js","sourceRoot":"","sources":["../../../src/types/Builders/StringSelectMenuBuilder.ts"],"names":[],"mappings":";;;AACA,mCAAoC;
|
|
1
|
+
{"version":3,"file":"StringSelectMenuBuilder.js","sourceRo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AAC;IACd,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,SAAgB,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IAChG,CAAC;CAEF;AA5CD,gEA4CC","sourcesContent":["import { BaseSelectMenuComponentData, StringSelectMenuComponentData } from \"discord.js\";\r\nimport { defaultify } from \"stuffs\";\r\nimport { NamespaceEnums } from \"../../../generated/namespaceData\";\r\nimport { DBIStringSelectMenu } from \"../Components/StringSelectMenu\";\r\nimport { RecursivePartial } from \"../../utils/UtilTypes\";\r\n\r\nexport type DBIStringSelectMenuOverrides = RecursivePartial<Omit<StringSelectMenuComponentData, \"customId\" | \"type\">>\r\n\r\nexport class DBIStringSelectMenuBuilder<TNamespace extends NamespaceEnums> {\r\n component: DBIStringSelectMenu<TNamespace>\r\n overrides: DBIStringSelectMenuOverrides;\r\n reference: { data: (string | number | object)[], ttl?: number };\r\n constructor(arg: { component: DBIStringSelectMenu<TNamespace>, overrides?: DBIStringSelectMenuOverrides, reference?: { data: (string | number | object)[], ttl?: number } }) {\r\n this.component = arg.component;\r\n this.overrides = arg.overrides ?? {};\r\n this.reference = arg.reference ?? { data: [] };\r\n }\r\n\r\n setTTL(ttl: number): DBIStringSelectMenuBuilder<TNamespace> {\r\n this.reference.ttl = ttl;\r\n return this;\r\n }\r\n\r\n addTTL(ttl: number): DBIStringSelectMenuBuilder<TNamespace> {\r\n this.reference.ttl = (this.reference.ttl ?? 0) + ttl;\r\n return this;\r\n }\r\n\r\n setData(...data: (string | number | object)[]): DBIStringSelectMenuBuilder<TNamespace> {\r\n this.reference.data = data;\r\n return this;\r\n }\r\n\r\n addData(...data: (string | number | object)[]): DBIStringSelectMenuBuilder<TNamespace> {\r\n this.reference.data = [...this.reference.data, ...data];\r\n return this;\r\n }\r\n\r\n setOverrides(overrides: DBIStringSelectMenuOverrides): DBIStringSelectMenuBuilder<TNamespace> {\r\n this.overrides = overrides;\r\n return this;\r\n }\r\n\r\n addOverrides(overrides: DBIStringSelectMenuOverrides): DBIStringSelectMenuBuilder<TNamespace> {\r\n this.overrides = defaultify(overrides, this.overrides, true);\r\n return this;\r\n }\r\n\r\n toJSON(): BaseSelectMenuComponentData {\r\n return this.component.toJSON({ overrides: this.overrides as any, reference: this.reference });\r\n }\r\n\r\n}"]}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { BaseSelectMenuComponentData, UserSelectMenuComponentData } from "discord.js";
|
|
2
2
|
import { NamespaceEnums } from "../../../generated/namespaceData";
|
|
3
3
|
import { DBIUserSelectMenu } from "../Components/UserSelectMenu";
|
|
4
|
-
|
|
4
|
+
import { RecursivePartial } from "../../utils/UtilTypes";
|
|
5
|
+
export declare type DBIUserSelectMenuOverrides = RecursivePartial<Omit<UserSelectMenuComponentData, "customId" | "type">>;
|
|
5
6
|
export declare class DBIUserSelectMenuBuilder<TNamespace extends NamespaceEnums> {
|
|
6
7
|
component: DBIUserSelectMenu<TNamespace>;
|
|
7
|
-
overrides:
|
|
8
|
+
overrides: DBIUserSelectMenuOverrides;
|
|
8
9
|
reference: {
|
|
9
10
|
data: (string | number | object)[];
|
|
10
11
|
ttl?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserSelectMenuBuilder.d.ts","sourceRoot":"","sources":["../../../src/types/Builders/UserSelectMenuBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAEtF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"UserSelectMenuBuilder.d.ts","sourceRoot":"","sources":["../../../src/types/Builders/UserSelectMenuBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,MA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B,CAAC,UAAU,CAAC;IAKzF,YAAY,CAAC,SAAS,EAAE,0BAA0B,GAAG,wBAAwB,CAAC,UAAU,CAAC;IAKzF,MAAM,IAAI,2BAA2B;CAItC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserSelectMenuBuilder.js","sourceRoot":"","sources":["../../../src/types/Builders/UserSelectMenuBuilder.ts"],"names":[],"mappings":";;;AACA,mCAAoC;
|
|
1
|
+
{"version":3,"file":"UserSelectMenuBuilder.js","sourceRoot":"","sources":["../../../src/types/Builders/UserSelectMenuBuilder.ts"],"names":[],"mappings":";;;AACA,mCAAoC;AAOpC,MAAa,wBAAwB;IACnC,SAAS,CAA+B;IACxC,SAAS,CAA6B;IACtC,SAAS,CAAuD;IAChE,YAAY,GAA2J;QACrK,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;QACrC,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IACjD,CAAC;IAED,MAAM,CAAC,GAAW;QAChB,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,GAAG,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,GAAW;QAChB,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;QACrD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CAAC,GAAG,IAAkC;QAC3C,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CAAC,GAAG,IAAkC;QAC3C,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;QACxD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,YAAY,CAAC,SAAqC;QAChD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,YAAY,CAAC,SAAqC;QAChD,IAAI,CAAC,SAAS,GAAG,IAAA,mBAAU,EAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAC7D,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,SAAgB,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IAChG,CAAC;CAEF;AA5CD,4DA4CC","sourcesContent":["import { BaseSelectMenuComponentData, UserSelectMenuComponentData } from \"discord.js\";\r\nimport { defaultify } from \"stuffs\";\r\nimport { NamespaceEnums } from \"../../../generated/namespaceData\";\r\nimport { DBIUserSelectMenu } from \"../Components/UserSelectMenu\";\r\nimport { RecursivePartial } from \"../../utils/UtilTypes\";\r\n\r\nexport type DBIUserSelectMenuOverrides = RecursivePartial<Omit<UserSelectMenuComponentData, \"customId\" | \"type\">>\r\n\r\nexport class DBIUserSelectMenuBuilder<TNamespace extends NamespaceEnums> {\r\n component: DBIUserSelectMenu<TNamespace>\r\n overrides: DBIUserSelectMenuOverrides;\r\n reference: { data: (string | number | object)[], ttl?: number };\r\n constructor(arg: { component: DBIUserSelectMenu<TNamespace>, overrides?: DBIUserSelectMenuOverrides, reference?: { data: (string | number | object)[], ttl?: number } }) {\r\n this.component = arg.component;\r\n this.overrides = arg.overrides ?? {};\r\n this.reference = arg.reference ?? { data: [] };\r\n }\r\n\r\n setTTL(ttl: number): DBIUserSelectMenuBuilder<TNamespace> {\r\n this.reference.ttl = ttl;\r\n return this;\r\n }\r\n\r\n addTTL(ttl: number): DBIUserSelectMenuBuilder<TNamespace> {\r\n this.reference.ttl = (this.reference.ttl ?? 0) + ttl;\r\n return this;\r\n }\r\n\r\n setData(...data: (string | number | object)[]): DBIUserSelectMenuBuilder<TNamespace> {\r\n this.reference.data = data;\r\n return this;\r\n }\r\n\r\n addData(...data: (string | number | object)[]): DBIUserSelectMenuBuilder<TNamespace> {\r\n this.reference.data = [...this.reference.data, ...data];\r\n return this;\r\n }\r\n\r\n setOverrides(overrides: DBIUserSelectMenuOverrides): DBIUserSelectMenuBuilder<TNamespace> {\r\n this.overrides = overrides;\r\n return this;\r\n }\r\n\r\n addOverrides(overrides: DBIUserSelectMenuOverrides): DBIUserSelectMenuBuilder<TNamespace> {\r\n this.overrides = defaultify(overrides, this.overrides, true);\r\n return this;\r\n }\r\n\r\n toJSON(): BaseSelectMenuComponentData {\r\n return this.component.toJSON({ overrides: this.overrides as any, reference: this.reference });\r\n }\r\n\r\n}"]}
|
|
@@ -14,7 +14,7 @@ export declare class DBIChannelSelectMenu<TNamespace extends NamespaceEnums> ext
|
|
|
14
14
|
constructor(dbi: DBI<TNamespace>, args: TDBIChannelSelectMenuOmitted<TNamespace>);
|
|
15
15
|
options: SelectMenuDefaultOptions;
|
|
16
16
|
onExecute(ctx: IDBIChannelSelectMenuExecuteCtx<TNamespace>): Promise<void> | void;
|
|
17
|
-
toJSON(arg?: IDBIToJSONArgs<DBIChannelSelectMenuOverrides>): Discord.
|
|
17
|
+
toJSON(arg?: IDBIToJSONArgs<DBIChannelSelectMenuOverrides>): Discord.ChannelSelectMenuComponentData;
|
|
18
18
|
createBuilder(arg?: IDBIToJSONArgs<DBIChannelSelectMenuOverrides>): DBIChannelSelectMenuBuilder<TNamespace>;
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=ChannelSelectMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelSelectMenu.d.ts","sourceRoot":"","sources":["../../../src/types/Components/ChannelSelectMenu.ts"],"names":[],"mappings":"AA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,GAAG,OAAO,CAAC,8BAA8B;IAQvG,aAAa,CAAC,GAAG,GAAE,cAAc,CAAC,6BAA6B,CAAM,GAAG,2BAA2B,CAAC,UAAU,CAAC;CAIhH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelSelectMenu.js","sourceRoot":"","sources":["../../../src/types/Components/ChannelSelectMenu.ts"],"names":[],"mappings":";;;;AAAA,oEAAiC;AAEjC,gDAA4F;AAC5F,mDAAqD;AAGrD,4DAA4B;AAC5B,mFAAkH;AAWlH,MAAa,oBAAwD,SAAQ,gCAA8B;IACzG,YAAY,GAAoB,EAAE,IAA8C;QAC9E,KAAK,CAAC,GAAG,EAAE;YACT,GAAI,IAAY;YAChB,IAAI,EAAE,mBAAmB;SAC1B,CAAC,CAAC;IACL,CAAC;IAIQ,SAAS,CAAC,GAAgD,IAA0B,CAAC;IAAA,CAAC;IAE/F,MAAM,CAAC,MAAqD,EAAE;QAC5D,OAAO;YACL,GAAG,gBAAM,CAAC,UAAU,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,OAAO,IAAI,EAAE,EAAE,IAAI,CAAC;YACtE,QAAQ,EAAE,IAAA,wBAAa,EAAC,IAAI,CAAC,GAAU,EAAE,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,IAAI,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC;YACpG,IAAI,EAAE,oBAAO,CAAC,aAAa,CAAC,aAAa;SACnC,CAAC;IACX,CAAC;IAAA,CAAC;IAEF,aAAa,CAAC,MAAqD,EAAE;QACnE,OAAO,IAAI,sDAA2B,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAAG,EAAE,CAAC,CAAA;IACrE,CAAC;CAEF;AAxBD,oDAwBC","sourcesContent":["import Discord from \"discord.js\";\r\nimport { DBI } from \"../../DBI\";\r\nimport { DBIBaseInteraction, IDBIBaseExecuteCtx, TDBIReferencedData } from \"../Interaction\";\r\nimport { buildCustomId } from \"../../utils/customId\";\r\nimport { IDBIToJSONArgs } from \"../../utils/UtilTypes\";\r\nimport { NamespaceEnums } from \"../../../generated/namespaceData\";\r\nimport stuffs from \"stuffs\";\r\nimport { DBIChannelSelectMenuBuilder, DBIChannelSelectMenuOverrides } from \"../Builders/ChannelSelectMenuBuilder\";\r\n\r\nexport interface IDBIChannelSelectMenuExecuteCtx<TNamespace extends NamespaceEnums> extends IDBIBaseExecuteCtx<TNamespace> {\r\n interaction: Discord.ChannelSelectMenuInteraction<\"cached\">;\r\n data: TDBIReferencedData[];\r\n}\r\n\r\nexport type TDBIChannelSelectMenuOmitted<TNamespace extends NamespaceEnums> = Omit<DBIChannelSelectMenu<TNamespace>, \"type\" | \"description\" | \"dbi\" | \"toJSON\" | \"createBuilder\">;\r\n\r\nexport type SelectMenuDefaultOptions = Omit<Discord.ChannelSelectMenuComponentData, \"customId\" | \"type\" | \"options\">;\r\n\r\nexport class DBIChannelSelectMenu<TNamespace extends NamespaceEnums> extends DBIBaseInteraction<TNamespace> {\r\n constructor(dbi: DBI<TNamespace>, args: TDBIChannelSelectMenuOmitted<TNamespace>) {\r\n super(dbi, {\r\n ...(args as any),\r\n type: \"ChannelSelectMenu\",\r\n });\r\n }\r\n\r\n declare options: SelectMenuDefaultOptions;\r\n\r\n override onExecute(ctx: IDBIChannelSelectMenuExecuteCtx<TNamespace>): Promise<void> | void { };\r\n\r\n toJSON(arg: IDBIToJSONArgs<DBIChannelSelectMenuOverrides> = {}): Discord.
|
|
1
|
+
{"version":3,"file":"ChannelSelectMenu.js","sourceRoot":"","sources":["../../../src/types/Components/ChannelSelectMenu.ts"],"names":[],"mappings":";;;;AAAA,oEAAiC;AAEjC,gDAA4F;AAC5F,mDAAqD;AAGrD,4DAA4B;AAC5B,mFAAkH;AAWlH,MAAa,oBAAwD,SAAQ,gCAA8B;IACzG,YAAY,GAAoB,EAAE,IAA8C;QAC9E,KAAK,CAAC,GAAG,EAAE;YACT,GAAI,IAAY;YAChB,IAAI,EAAE,mBAAmB;SAC1B,CAAC,CAAC;IACL,CAAC;IAIQ,SAAS,CAAC,GAAgD,IAA0B,CAAC;IAAA,CAAC;IAE/F,MAAM,CAAC,MAAqD,EAAE;QAC5D,OAAO;YACL,GAAG,gBAAM,CAAC,UAAU,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,OAAO,IAAI,EAAE,EAAE,IAAI,CAAC;YACtE,QAAQ,EAAE,IAAA,wBAAa,EAAC,IAAI,CAAC,GAAU,EAAE,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,IAAI,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC;YACpG,IAAI,EAAE,oBAAO,CAAC,aAAa,CAAC,aAAa;SACnC,CAAC;IACX,CAAC;IAAA,CAAC;IAEF,aAAa,CAAC,MAAqD,EAAE;QACnE,OAAO,IAAI,sDAA2B,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAAG,EAAE,CAAC,CAAA;IACrE,CAAC;CAEF;AAxBD,oDAwBC","sourcesContent":["import Discord from \"discord.js\";\r\nimport { DBI } from \"../../DBI\";\r\nimport { DBIBaseInteraction, IDBIBaseExecuteCtx, TDBIReferencedData } from \"../Interaction\";\r\nimport { buildCustomId } from \"../../utils/customId\";\r\nimport { IDBIToJSONArgs } from \"../../utils/UtilTypes\";\r\nimport { NamespaceEnums } from \"../../../generated/namespaceData\";\r\nimport stuffs from \"stuffs\";\r\nimport { DBIChannelSelectMenuBuilder, DBIChannelSelectMenuOverrides } from \"../Builders/ChannelSelectMenuBuilder\";\r\n\r\nexport interface IDBIChannelSelectMenuExecuteCtx<TNamespace extends NamespaceEnums> extends IDBIBaseExecuteCtx<TNamespace> {\r\n interaction: Discord.ChannelSelectMenuInteraction<\"cached\">;\r\n data: TDBIReferencedData[];\r\n}\r\n\r\nexport type TDBIChannelSelectMenuOmitted<TNamespace extends NamespaceEnums> = Omit<DBIChannelSelectMenu<TNamespace>, \"type\" | \"description\" | \"dbi\" | \"toJSON\" | \"createBuilder\">;\r\n\r\nexport type SelectMenuDefaultOptions = Omit<Discord.ChannelSelectMenuComponentData, \"customId\" | \"type\" | \"options\">;\r\n\r\nexport class DBIChannelSelectMenu<TNamespace extends NamespaceEnums> extends DBIBaseInteraction<TNamespace> {\r\n constructor(dbi: DBI<TNamespace>, args: TDBIChannelSelectMenuOmitted<TNamespace>) {\r\n super(dbi, {\r\n ...(args as any),\r\n type: \"ChannelSelectMenu\",\r\n });\r\n }\r\n\r\n declare options: SelectMenuDefaultOptions;\r\n\r\n override onExecute(ctx: IDBIChannelSelectMenuExecuteCtx<TNamespace>): Promise<void> | void { };\r\n\r\n toJSON(arg: IDBIToJSONArgs<DBIChannelSelectMenuOverrides> = {}): Discord.ChannelSelectMenuComponentData {\r\n return {\r\n ...stuffs.defaultify((arg?.overrides || {}), this.options || {}, true),\r\n customId: buildCustomId(this.dbi as any, this.name, arg?.reference?.data || [], arg?.reference?.ttl),\r\n type: Discord.ComponentType.ChannelSelect,\r\n } as any;\r\n };\r\n\r\n createBuilder(arg: IDBIToJSONArgs<DBIChannelSelectMenuOverrides> = {}): DBIChannelSelectMenuBuilder<TNamespace> {\r\n return new DBIChannelSelectMenuBuilder({ component: this, ...arg })\r\n }\r\n\r\n}"]}
|
|
@@ -14,7 +14,7 @@ export declare class DBIMentionableSelectMenu<TNamespace extends NamespaceEnums>
|
|
|
14
14
|
constructor(dbi: DBI<TNamespace>, args: TDBIMentionableSelectMenuOmitted<TNamespace>);
|
|
15
15
|
options: SelectMenuDefaultOptions;
|
|
16
16
|
onExecute(ctx: IDBIMentionableSelectMenuExecuteCtx<TNamespace>): Promise<void> | void;
|
|
17
|
-
toJSON(arg?: IDBIToJSONArgs<DBIMentionableSelectMenuOverrides>): Discord.
|
|
17
|
+
toJSON(arg?: IDBIToJSONArgs<DBIMentionableSelectMenuOverrides>): Discord.MentionableSelectMenuComponentData;
|
|
18
18
|
createBuilder(arg?: IDBIToJSONArgs<DBIMentionableSelectMenuOverrides>): DBIMentionableSelectMenuBuilder<TNamespace>;
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=MentionableSelectMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MentionableSelectMenu.d.ts","sourceRoot":"","sources":["../../../src/types/Components/MentionableSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAE5F,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,EAAE,+BAA+B,EAAE,iCAAiC,EAAE,MAAM,0CAA0C,CAAC;AAE9H,MAAM,WAAW,mCAAmC,CAAC,UAAU,SAAS,cAAc,CAAE,SAAQ,kBAAkB,CAAC,UAAU,CAAC;IAC5H,WAAW,EAAE,OAAO,CAAC,gCAAgC,CAAC,QAAQ,CAAC,CAAC;IAChE,IAAI,EAAE,kBAAkB,EAAE,CAAC;CAC5B;AAED,oBAAY,gCAAgC,CAAC,UAAU,SAAS,cAAc,IAAI,IAAI,CAAC,wBAAwB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,KAAK,GAAG,QAAQ,GAAG,eAAe,CAAC,CAAC;AAE1L,oBAAY,wBAAwB,GAAG,IAAI,CAAC,OAAO,CAAC,kCAAkC,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;AAEzH,qBAAa,wBAAwB,CAAC,UAAU,SAAS,cAAc,CAAE,SAAQ,kBAAkB,CAAC,UAAU,CAAC;gBACjG,GAAG,EAAE,GAA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AI,EAAE,oBAAO,CAAC,aAAa,CAAC,iBAAiB;SACvC,CAAC;IACX,CAAC;IAAA,CAAC;IAEF,aAAa,CAAC,MAAyD,EAAE;QACvE,OAAO,IAAI,8DAA+B,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAAG,EAAE,CAAC,CAAA;IACzE,CAAC;CAEF;AAxBD,4DAwBC","sourcesContent":["import Discord from \"discord.js\";\r\nimport { DBI } from \"../../DBI\";\r\nimport { DBIBaseInteraction, IDBIBaseExecuteCtx, TDBIReferencedData } from \"../Interaction\";\r\nimport { buildCustomId } from \"../../utils/customId\";\r\nimport { IDBIToJSONArgs } from \"../../utils/UtilTypes\";\r\nimport { NamespaceEnums } from \"../../../generated/namespaceData\";\r\nimport stuffs from \"stuffs\";\r\nimport { DBIMentionableSelectMenuBuilder, DBIMentionableSelectMenuOverrides } from \"../Builders/MentionableSelectMenuBuilder\";\r\n\r\nexport interface IDBIMentionableSelectMenuExecuteCtx<TNamespace extends NamespaceEnums> extends IDBIBaseExecuteCtx<TNamespace> {\r\n interaction: Discord.MentionableSelectMenuInteraction<\"cached\">;\r\n data: TDBIReferencedData[];\r\n}\r\n\r\nexport type TDBIMentionableSelectMenuOmitted<TNamespace extends NamespaceEnums> = Omit<DBIMentionableSelectMenu<TNamespace>, \"type\" | \"description\" | \"dbi\" | \"toJSON\" | \"createBuilder\">;\r\n\r\nexport type SelectMenuDefaultOptions = Omit<Discord.MentionableSelectMenuComponentData, \"customId\" | \"type\" | \"options\">;\r\n\r\nexport class DBIMentionableSelectMenu<TNamespace extends NamespaceEnums> extends DBIBaseInteraction<TNamespace> {\r\n constructor(dbi: DBI<TNamespace>, args: TDBIMentionableSelectMenuOmitted<TNamespace>) {\r\n super(dbi, {\r\n ...(args as any),\r\n type: \"MentionableSelectMenu\",\r\n });\r\n }\r\n\r\n declare options: SelectMenuDefaultOptions;\r\n\r\n override onExecute(ctx: IDBIMentionableSelectMenuExecuteCtx<TNamespace>): Promise<void> | void { };\r\n\r\n toJSON(arg: IDBIToJSONArgs<DBIMentionableSelectMenuOverrides> = {}): Discord.
|
|
1
|
+
{"version":3,"file":"MentionableSelectMenu.js","sourceRoot":"","sources":["../../../src/types/Components/MentionableSelectMenu.ts"],"names":[],"mappings":";;;;AAAA,oEAAiC;AAEjC,gDAA4F;AAC5F,mDAAqD;AAGrD,4DAA4B;AAC5B,2FAA8H;AAW9H,MAAa,wBAA4D,SAAQ,gCAA8B;IAC7G,YAAY,GAAoB,EAAE,IAAkD;QAClF,KAAK,CAAC,GAAG,EAAE;YACT,GAAI,IAAY;YAChB,IAAI,EAAE,uBAAuB;SAC9B,CAAC,CAAC;IACL,CAAC;IAIQ,SAAS,CAAC,GAAoD,IAA0B,CAAC;IAAA,CAAC;IAEnG,MAAM,CAAC,MAAyD,EAAE;QAChE,OAAO;YACL,GAAG,gBAAM,CAAC,UAAU,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,OAAO,IAAI,EAAE,EAAE,IAAI,CAAC;YACtE,QAAQ,EAAE,IAAA,wBAAa,EAAC,IAAI,CAAC,GAAU,EAAE,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,IAAI,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC;YACpG,IAAI,EAAE,oBAAO,CAAC,aAAa,CAAC,iBAAiB;SACvC,CAAC;IACX,CAAC;IAAA,CAAC;IAEF,aAAa,CAAC,MAAyD,EAAE;QACvE,OAAO,IAAI,8DAA+B,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAAG,EAAE,CAAC,CAAA;IACzE,CAAC;CAEF;AAxBD,4DAwBC","sourcesContent":["import Discord from \"discord.js\";\r\nimport { DBI } from \"../../DBI\";\r\nimport { DBIBaseInteraction, IDBIBaseExecuteCtx, TDBIReferencedData } from \"../Interaction\";\r\nimport { buildCustomId } from \"../../utils/customId\";\r\nimport { IDBIToJSONArgs } from \"../../utils/UtilTypes\";\r\nimport { NamespaceEnums } from \"../../../generated/namespaceData\";\r\nimport stuffs from \"stuffs\";\r\nimport { DBIMentionableSelectMenuBuilder, DBIMentionableSelectMenuOverrides } from \"../Builders/MentionableSelectMenuBuilder\";\r\n\r\nexport interface IDBIMentionableSelectMenuExecuteCtx<TNamespace extends NamespaceEnums> extends IDBIBaseExecuteCtx<TNamespace> {\r\n interaction: Discord.MentionableSelectMenuInteraction<\"cached\">;\r\n data: TDBIReferencedData[];\r\n}\r\n\r\nexport type TDBIMentionableSelectMenuOmitted<TNamespace extends NamespaceEnums> = Omit<DBIMentionableSelectMenu<TNamespace>, \"type\" | \"description\" | \"dbi\" | \"toJSON\" | \"createBuilder\">;\r\n\r\nexport type SelectMenuDefaultOptions = Omit<Discord.MentionableSelectMenuComponentData, \"customId\" | \"type\" | \"options\">;\r\n\r\nexport class DBIMentionableSelectMenu<TNamespace extends NamespaceEnums> extends DBIBaseInteraction<TNamespace> {\r\n constructor(dbi: DBI<TNamespace>, args: TDBIMentionableSelectMenuOmitted<TNamespace>) {\r\n super(dbi, {\r\n ...(args as any),\r\n type: \"MentionableSelectMenu\",\r\n });\r\n }\r\n\r\n declare options: SelectMenuDefaultOptions;\r\n\r\n override onExecute(ctx: IDBIMentionableSelectMenuExecuteCtx<TNamespace>): Promise<void> | void { };\r\n\r\n toJSON(arg: IDBIToJSONArgs<DBIMentionableSelectMenuOverrides> = {}): Discord.MentionableSelectMenuComponentData {\r\n return {\r\n ...stuffs.defaultify((arg?.overrides || {}), this.options || {}, true),\r\n customId: buildCustomId(this.dbi as any, this.name, arg?.reference?.data || [], arg?.reference?.ttl),\r\n type: Discord.ComponentType.MentionableSelect,\r\n } as any;\r\n };\r\n\r\n createBuilder(arg: IDBIToJSONArgs<DBIMentionableSelectMenuOverrides> = {}): DBIMentionableSelectMenuBuilder<TNamespace> {\r\n return new DBIMentionableSelectMenuBuilder({ component: this, ...arg })\r\n }\r\n\r\n}"]}
|
|
@@ -3,6 +3,9 @@ export interface IDBIToJSONArgs<T> {
|
|
|
3
3
|
ttl?: number;
|
|
4
4
|
data: (string | number | object)[];
|
|
5
5
|
};
|
|
6
|
-
overrides?: T
|
|
6
|
+
overrides?: RecursivePartial<T>;
|
|
7
7
|
}
|
|
8
|
+
export declare type RecursivePartial<T> = {
|
|
9
|
+
[P in keyof T]?: RecursivePartial<T[P]>;
|
|
10
|
+
};
|
|
8
11
|
//# sourceMappingURL=UtilTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UtilTypes.d.ts","sourceRoot":"","sources":["../../src/utils/UtilTypes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,SAAS,CAAC,EAAE;QACV,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;KACpC,CAAC;IACF,SAAS,CAAC,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"UtilTypes.d.ts","sourceRoot":"","sources":["../../src/utils/UtilTypes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,SAAS,CAAC,EAAE;QACV,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;KACpC,CAAC;IACF,SAAS,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;CACjC;AAED,oBAAY,gBAAgB,CAAC,CAAC,IAAI;KAC/B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACxC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UtilTypes.js","sourceRoot":"","sources":["../../src/utils/UtilTypes.ts"],"names":[],"mappings":"","sourcesContent":["export interface IDBIToJSONArgs<T> {\r\n reference?: {\r\n ttl?: number;\r\n data: (string | number | object)[];\r\n };\r\n overrides?: T
|
|
1
|
+
{"version":3,"file":"UtilTypes.js","sourceRoot":"","sources":["../../src/utils/UtilTypes.ts"],"names":[],"mappings":"","sourcesContent":["export interface IDBIToJSONArgs<T> {\r\n reference?: {\r\n ttl?: number;\r\n data: (string | number | object)[];\r\n };\r\n overrides?: RecursivePartial<T>;\r\n}\r\n\r\nexport type RecursivePartial<T> = {\r\n [P in keyof T]?: RecursivePartial<T[P]>;\r\n}"]}
|
package/package.json
CHANGED
|
@@ -2,8 +2,9 @@ import { ButtonComponentData, ButtonStyle } from "discord.js";
|
|
|
2
2
|
import { defaultify } from "stuffs";
|
|
3
3
|
import { NamespaceEnums } from "../../../generated/namespaceData";
|
|
4
4
|
import { DBIButton } from "../Components/Button";
|
|
5
|
+
import { RecursivePartial } from "../../utils/UtilTypes";
|
|
5
6
|
|
|
6
|
-
export type DBIButtonOverrides = { style?: ButtonStyle } & Omit<ButtonComponentData, "customId" | "type" | "style"
|
|
7
|
+
export type DBIButtonOverrides = RecursivePartial<{ style?: ButtonStyle } & Omit<ButtonComponentData, "customId" | "type" | "style">>
|
|
7
8
|
|
|
8
9
|
export class DBIButtonBuilder<TNamespace extends NamespaceEnums> {
|
|
9
10
|
component: DBIButton<TNamespace>
|
|
@@ -2,12 +2,13 @@ import { BaseSelectMenuComponentData, ChannelSelectMenuComponentData } from "dis
|
|
|
2
2
|
import { defaultify } from "stuffs";
|
|
3
3
|
import { NamespaceEnums } from "../../../generated/namespaceData";
|
|
4
4
|
import { DBIChannelSelectMenu } from "../Components/ChannelSelectMenu";
|
|
5
|
+
import { RecursivePartial } from "../../utils/UtilTypes";
|
|
5
6
|
|
|
6
|
-
export type DBIChannelSelectMenuOverrides = Omit<ChannelSelectMenuComponentData, "customId" | "type"
|
|
7
|
+
export type DBIChannelSelectMenuOverrides = RecursivePartial<Omit<ChannelSelectMenuComponentData, "customId" | "type">>
|
|
7
8
|
|
|
8
9
|
export class DBIChannelSelectMenuBuilder<TNamespace extends NamespaceEnums> {
|
|
9
10
|
component: DBIChannelSelectMenu<TNamespace>
|
|
10
|
-
overrides:
|
|
11
|
+
overrides: DBIChannelSelectMenuOverrides;
|
|
11
12
|
reference: { data: (string | number | object)[], ttl?: number };
|
|
12
13
|
constructor(arg: { component: DBIChannelSelectMenu<TNamespace>, overrides?: DBIChannelSelectMenuOverrides, reference?: { data: (string | number | object)[], ttl?: number } }) {
|
|
13
14
|
this.component = arg.component;
|
|
@@ -2,12 +2,13 @@ import { BaseSelectMenuComponentData, MentionableSelectMenuComponentData } from
|
|
|
2
2
|
import { defaultify } from "stuffs";
|
|
3
3
|
import { NamespaceEnums } from "../../../generated/namespaceData";
|
|
4
4
|
import { DBIMentionableSelectMenu } from "../Components/MentionableSelectMenu";
|
|
5
|
+
import { RecursivePartial } from "../../utils/UtilTypes";
|
|
5
6
|
|
|
6
|
-
export type DBIMentionableSelectMenuOverrides = Omit<MentionableSelectMenuComponentData, "customId" | "type"
|
|
7
|
+
export type DBIMentionableSelectMenuOverrides = RecursivePartial<Omit<MentionableSelectMenuComponentData, "customId" | "type">>
|
|
7
8
|
|
|
8
9
|
export class DBIMentionableSelectMenuBuilder<TNamespace extends NamespaceEnums> {
|
|
9
10
|
component: DBIMentionableSelectMenu<TNamespace>
|
|
10
|
-
overrides:
|
|
11
|
+
overrides: DBIMentionableSelectMenuOverrides;
|
|
11
12
|
reference: { data: (string | number | object)[], ttl?: number };
|
|
12
13
|
constructor(arg: { component: DBIMentionableSelectMenu<TNamespace>, overrides?: DBIMentionableSelectMenuOverrides, reference?: { data: (string | number | object)[], ttl?: number } }) {
|
|
13
14
|
this.component = arg.component;
|
|
@@ -2,8 +2,9 @@ import { ActionRowData, APIActionRowComponent, APITextInputComponent, JSONEncoda
|
|
|
2
2
|
import { defaultify } from "stuffs";
|
|
3
3
|
import { NamespaceEnums } from "../../../generated/namespaceData";
|
|
4
4
|
import { DBIModal } from "../Components/Modal";
|
|
5
|
+
import { RecursivePartial } from "../../utils/UtilTypes";
|
|
5
6
|
|
|
6
|
-
export type DBIModalOverrides = { components?: (JSONEncodable<APIActionRowComponent<APITextInputComponent>> | ActionRowData<ModalActionRowComponentData>)[], title?: string } & Omit<ModalComponentData, "customId" | "type" | "title" | "components"
|
|
7
|
+
export type DBIModalOverrides = RecursivePartial<{ components?: (JSONEncodable<APIActionRowComponent<APITextInputComponent>> | ActionRowData<ModalActionRowComponentData>)[], title?: string } & Omit<ModalComponentData, "customId" | "type" | "title" | "components">>
|
|
7
8
|
|
|
8
9
|
export class DBIModalBuilder<TNamespace extends NamespaceEnums> {
|
|
9
10
|
component: DBIModal<TNamespace>
|
|
@@ -2,8 +2,9 @@ import { BaseSelectMenuComponentData, RoleSelectMenuComponentData } from "discor
|
|
|
2
2
|
import { defaultify } from "stuffs";
|
|
3
3
|
import { NamespaceEnums } from "../../../generated/namespaceData";
|
|
4
4
|
import { DBIRoleSelectMenu } from "../Components/RoleSelectMenu";
|
|
5
|
+
import { RecursivePartial } from "../../utils/UtilTypes";
|
|
5
6
|
|
|
6
|
-
export type DBIRoleSelectMenuOverrides = Omit<RoleSelectMenuComponentData, "customId" | "type"
|
|
7
|
+
export type DBIRoleSelectMenuOverrides = RecursivePartial<Omit<RoleSelectMenuComponentData, "customId" | "type">>
|
|
7
8
|
|
|
8
9
|
export class DBIRoleSelectMenuBuilder<TNamespace extends NamespaceEnums> {
|
|
9
10
|
component: DBIRoleSelectMenu<TNamespace>
|
|
@@ -2,12 +2,13 @@ import { BaseSelectMenuComponentData, StringSelectMenuComponentData } from "disc
|
|
|
2
2
|
import { defaultify } from "stuffs";
|
|
3
3
|
import { NamespaceEnums } from "../../../generated/namespaceData";
|
|
4
4
|
import { DBIStringSelectMenu } from "../Components/StringSelectMenu";
|
|
5
|
+
import { RecursivePartial } from "../../utils/UtilTypes";
|
|
5
6
|
|
|
6
|
-
export type DBIStringSelectMenuOverrides = Omit<StringSelectMenuComponentData, "customId" | "type"
|
|
7
|
+
export type DBIStringSelectMenuOverrides = RecursivePartial<Omit<StringSelectMenuComponentData, "customId" | "type">>
|
|
7
8
|
|
|
8
9
|
export class DBIStringSelectMenuBuilder<TNamespace extends NamespaceEnums> {
|
|
9
10
|
component: DBIStringSelectMenu<TNamespace>
|
|
10
|
-
overrides:
|
|
11
|
+
overrides: DBIStringSelectMenuOverrides;
|
|
11
12
|
reference: { data: (string | number | object)[], ttl?: number };
|
|
12
13
|
constructor(arg: { component: DBIStringSelectMenu<TNamespace>, overrides?: DBIStringSelectMenuOverrides, reference?: { data: (string | number | object)[], ttl?: number } }) {
|
|
13
14
|
this.component = arg.component;
|
|
@@ -2,12 +2,13 @@ import { BaseSelectMenuComponentData, UserSelectMenuComponentData } from "discor
|
|
|
2
2
|
import { defaultify } from "stuffs";
|
|
3
3
|
import { NamespaceEnums } from "../../../generated/namespaceData";
|
|
4
4
|
import { DBIUserSelectMenu } from "../Components/UserSelectMenu";
|
|
5
|
+
import { RecursivePartial } from "../../utils/UtilTypes";
|
|
5
6
|
|
|
6
|
-
export type DBIUserSelectMenuOverrides = Omit<UserSelectMenuComponentData, "customId" | "type"
|
|
7
|
+
export type DBIUserSelectMenuOverrides = RecursivePartial<Omit<UserSelectMenuComponentData, "customId" | "type">>
|
|
7
8
|
|
|
8
9
|
export class DBIUserSelectMenuBuilder<TNamespace extends NamespaceEnums> {
|
|
9
10
|
component: DBIUserSelectMenu<TNamespace>
|
|
10
|
-
overrides:
|
|
11
|
+
overrides: DBIUserSelectMenuOverrides;
|
|
11
12
|
reference: { data: (string | number | object)[], ttl?: number };
|
|
12
13
|
constructor(arg: { component: DBIUserSelectMenu<TNamespace>, overrides?: DBIUserSelectMenuOverrides, reference?: { data: (string | number | object)[], ttl?: number } }) {
|
|
13
14
|
this.component = arg.component;
|
|
@@ -28,7 +28,7 @@ export class DBIChannelSelectMenu<TNamespace extends NamespaceEnums> extends DBI
|
|
|
28
28
|
|
|
29
29
|
override onExecute(ctx: IDBIChannelSelectMenuExecuteCtx<TNamespace>): Promise<void> | void { };
|
|
30
30
|
|
|
31
|
-
toJSON(arg: IDBIToJSONArgs<DBIChannelSelectMenuOverrides> = {}): Discord.
|
|
31
|
+
toJSON(arg: IDBIToJSONArgs<DBIChannelSelectMenuOverrides> = {}): Discord.ChannelSelectMenuComponentData {
|
|
32
32
|
return {
|
|
33
33
|
...stuffs.defaultify((arg?.overrides || {}), this.options || {}, true),
|
|
34
34
|
customId: buildCustomId(this.dbi as any, this.name, arg?.reference?.data || [], arg?.reference?.ttl),
|
|
@@ -28,7 +28,7 @@ export class DBIMentionableSelectMenu<TNamespace extends NamespaceEnums> extends
|
|
|
28
28
|
|
|
29
29
|
override onExecute(ctx: IDBIMentionableSelectMenuExecuteCtx<TNamespace>): Promise<void> | void { };
|
|
30
30
|
|
|
31
|
-
toJSON(arg: IDBIToJSONArgs<DBIMentionableSelectMenuOverrides> = {}): Discord.
|
|
31
|
+
toJSON(arg: IDBIToJSONArgs<DBIMentionableSelectMenuOverrides> = {}): Discord.MentionableSelectMenuComponentData {
|
|
32
32
|
return {
|
|
33
33
|
...stuffs.defaultify((arg?.overrides || {}), this.options || {}, true),
|
|
34
34
|
customId: buildCustomId(this.dbi as any, this.name, arg?.reference?.data || [], arg?.reference?.ttl),
|
package/src/utils/UtilTypes.ts
CHANGED