quickbotz 0.0.3 → 0.0.4

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.
@@ -0,0 +1,49 @@
1
+ import { AutocompleteInteraction, ChatInputCommandInteraction, Client, ClientEvents, Collection, GatewayIntentBits, SlashCommandBuilder } from "discord.js";
2
+
3
+ //#region src/types/QuickBotzOptions.d.ts
4
+ interface MultiGuildConfig {
5
+ mode: "multi";
6
+ clientId: string;
7
+ token: string;
8
+ intents: GatewayIntentBits[];
9
+ }
10
+ interface SingleGuildConfig {
11
+ mode: "single";
12
+ clientId: string;
13
+ guildId: string;
14
+ token: string;
15
+ intents: GatewayIntentBits[];
16
+ }
17
+ //#endregion
18
+ //#region src/types/Context.d.ts
19
+ interface Context {
20
+ client: Client;
21
+ }
22
+ //#endregion
23
+ //#region src/types/CommandOptions.d.ts
24
+ interface CommandOptions {
25
+ data: SlashCommandBuilder;
26
+ execute: (ctx: Context, interaction: ChatInputCommandInteraction) => void | Promise<void>;
27
+ autocomplete?: (ctx: Context, interaction: AutocompleteInteraction) => void | Promise<void>;
28
+ }
29
+ //#endregion
30
+ //#region src/QuickBotz.d.ts
31
+ declare class QuickBotz {
32
+ #private;
33
+ client: Client;
34
+ ctx: Context;
35
+ commands: Collection<string, any>;
36
+ private constructor();
37
+ static multi(config: Omit<MultiGuildConfig, "mode">): QuickBotz;
38
+ static single(config: Omit<SingleGuildConfig, "mode">): QuickBotz;
39
+ registerEvent: <K extends keyof ClientEvents>(event: K, once: boolean | undefined, callback: (ctx: Context, ...args: ClientEvents[K]) => void | Promise<void>) => void;
40
+ registerCommand({
41
+ data,
42
+ execute,
43
+ autocomplete
44
+ }: CommandOptions): void;
45
+ start: () => Promise<void>;
46
+ }
47
+ //#endregion
48
+ export { type Context, QuickBotz };
49
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/types/QuickBotzOptions.ts","../src/types/Context.ts","../src/types/CommandOptions.ts","../src/QuickBotz.ts"],"mappings":";;;UAEiB,gBAAA;EACf,IAAA;EACA,QAAA;EACA,KAAA;EACA,OAAA,EAAS,iBAAA;AAAA;AAAA,UAGM,iBAAA;EACf,IAAA;EACA,QAAA;EACA,OAAA;EACA,KAAA;EACA,OAAA,EAAS,iBAAA;AAAA;;;UCZM,OAAA;EACf,MAAA,EAAQ,MAAA;AAAA;;;UCAe,cAAA;EACrB,IAAA,EAAM,mBAAA;EACN,OAAA,GAAU,GAAA,EAAK,OAAA,EAAS,WAAA,EAAa,2BAAA,YAAuC,OAAA;EAC5E,YAAA,IAAgB,GAAA,EAAK,OAAA,EAAS,WAAA,EAAa,uBAAA,YAAmC,OAAA;AAAA;;;cCU5E,SAAA;EAAA;EACG,MAAA,EAAQ,MAAA;EACR,GAAA,EAAK,OAAA;EACL,QAAA,EAAU,UAAA;EAAA,QAGV,WAAA,CAAA;EAAA,OASA,KAAA,CAAM,MAAA,EAAQ,IAAA,CAAK,gBAAA,YAAyB,SAAA;EAAA,OAI5C,MAAA,CAAO,MAAA,EAAQ,IAAA,CAAK,iBAAA,YAA0B,SAAA;EAIrD,aAAA,mBAAiC,YAAA,EAC/B,KAAA,EAAO,CAAA,EACP,IAAA,uBACA,QAAA,GAAW,GAAA,EAAK,OAAA,KAAY,IAAA,EAAM,YAAA,CAAa,CAAA,aAAc,OAAA;EAW/D,eAAA,CAAA;IAAkB,IAAA;IAAM,OAAA;IAAS;EAAA,GAAgB,cAAA;EAiFjD,KAAA,QAAK,OAAA;AAAA"}
package/dist/index.mjs ADDED
@@ -0,0 +1,97 @@
1
+ import { Client, Collection, Events, MessageFlags, REST, Routes } from "discord.js";
2
+
3
+ //#region src/QuickBotz.ts
4
+ var QuickBotz = class QuickBotz {
5
+ client;
6
+ ctx;
7
+ commands;
8
+ #config;
9
+ constructor(config) {
10
+ this.#config = config;
11
+ this.client = new Client({ intents: config.intents });
12
+ this.commands = new Collection();
13
+ this.ctx = { client: this.client };
14
+ }
15
+ static multi(config) {
16
+ return new QuickBotz({
17
+ ...config,
18
+ mode: "multi"
19
+ });
20
+ }
21
+ static single(config) {
22
+ return new QuickBotz({
23
+ ...config,
24
+ mode: "single"
25
+ });
26
+ }
27
+ registerEvent = (event, once = false, callback) => {
28
+ once ? this.client.once(event, (...args) => {
29
+ return callback(this.ctx, ...args);
30
+ }) : this.client.on(event, (...args) => {
31
+ return callback(this.ctx, ...args);
32
+ });
33
+ };
34
+ registerCommand({ data, execute, autocomplete }) {
35
+ this.commands.set(data.name, {
36
+ data,
37
+ execute,
38
+ autocomplete
39
+ });
40
+ }
41
+ #setupInteractionHandler = () => {
42
+ this.client.on(Events.InteractionCreate, async (interaction) => {
43
+ if (interaction.isChatInputCommand()) {
44
+ const command = this.commands.get(interaction.commandName);
45
+ if (!command) return await interaction.reply({
46
+ content: `This command cannot be found.`,
47
+ flags: MessageFlags.Ephemeral
48
+ });
49
+ if (interaction.isAutocomplete() && command.autocomplete) {
50
+ try {
51
+ await command.autocomplete(this.ctx, interaction);
52
+ } catch (error) {
53
+ console.error(error);
54
+ }
55
+ return;
56
+ }
57
+ try {
58
+ await command.execute(this.ctx, interaction);
59
+ } catch (error) {
60
+ console.error(error);
61
+ const content = "There was an error while executing this command";
62
+ if (interaction.replied || interaction.deferred) return await interaction.followUp({
63
+ content,
64
+ flags: MessageFlags.Ephemeral
65
+ });
66
+ await interaction.reply({
67
+ content,
68
+ flags: MessageFlags.Ephemeral
69
+ });
70
+ }
71
+ }
72
+ });
73
+ };
74
+ #deployCommands = async () => {
75
+ const commandsToRegister = this.commands.map((cmd) => cmd.data.toJSON());
76
+ const rest = new REST().setToken(this.#config.token);
77
+ try {
78
+ console.log(`(ℹ) Started refreshing ${commandsToRegister.length} application (/) commands.`);
79
+ let data;
80
+ if (this.#config.mode === "multi") data = await rest.put(Routes.applicationCommands(this.#config.clientId), { body: commandsToRegister });
81
+ else data = await rest.put(Routes.applicationGuildCommands(this.#config.clientId, this.#config.guildId), { body: commandsToRegister });
82
+ console.log(`(✅) Successfully reloaded ${data.length} application (/) commands.`);
83
+ } catch (error) {
84
+ console.error(error);
85
+ }
86
+ };
87
+ start = async () => {
88
+ await this.#deployCommands();
89
+ this.#setupInteractionHandler();
90
+ this.client.login(this.#config.token);
91
+ console.log(`(⚡) QuickBotz Initialized Successfully`);
92
+ };
93
+ };
94
+
95
+ //#endregion
96
+ export { QuickBotz };
97
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["#config","#deployCommands","#setupInteractionHandler"],"sources":["../src/QuickBotz.ts"],"sourcesContent":["import {\n Client,\n Collection,\n Events,\n MessageFlags,\n REST,\n Routes,\n type ClientEvents,\n type RESTPostAPIApplicationCommandsResult,\n} from \"discord.js\";\nimport type { CommandOptions, Context, QuickBotzOptions } from \"./types\";\nimport type {\n MultiGuildConfig,\n SingleGuildConfig,\n} from \"./types/QuickBotzOptions\";\n\nclass QuickBotz {\n public client: Client;\n public ctx: Context;\n public commands: Collection<string, any>;\n #config: QuickBotzOptions;\n\n private constructor(config: QuickBotzOptions) {\n this.#config = config;\n this.client = new Client({ intents: config.intents });\n this.commands = new Collection();\n this.ctx = {\n client: this.client,\n };\n }\n\n static multi(config: Omit<MultiGuildConfig, \"mode\">) {\n return new QuickBotz({ ...config, mode: \"multi\" });\n }\n\n static single(config: Omit<SingleGuildConfig, \"mode\">) {\n return new QuickBotz({ ...config, mode: \"single\" });\n }\n\n registerEvent = <K extends keyof ClientEvents>(\n event: K,\n once: boolean = false,\n callback: (ctx: Context, ...args: ClientEvents[K]) => void | Promise<void>,\n ) => {\n once\n ? this.client.once(event, (...args: ClientEvents[K]) => {\n return callback(this.ctx, ...args);\n })\n : this.client.on(event, (...args: ClientEvents[K]) => {\n return callback(this.ctx, ...args);\n });\n };\n\n registerCommand({ data, execute, autocomplete }: CommandOptions) {\n this.commands.set(data.name, { data, execute, autocomplete });\n }\n\n #setupInteractionHandler = () => {\n this.client.on(Events.InteractionCreate, async (interaction) => {\n if (interaction.isChatInputCommand()) {\n const command: CommandOptions = this.commands.get(\n interaction.commandName,\n );\n\n if (!command) {\n return await interaction.reply({\n content: `This command cannot be found.`,\n flags: MessageFlags.Ephemeral,\n });\n }\n\n if (interaction.isAutocomplete() && command.autocomplete) {\n try {\n await command.autocomplete(this.ctx, interaction);\n } catch (error) {\n console.error(error);\n }\n return;\n }\n\n try {\n await command.execute(this.ctx, interaction);\n } catch (error) {\n console.error(error);\n const content = \"There was an error while executing this command\";\n if (interaction.replied || interaction.deferred) {\n return await interaction.followUp({\n content,\n flags: MessageFlags.Ephemeral,\n });\n }\n\n await interaction.reply({\n content,\n flags: MessageFlags.Ephemeral,\n });\n }\n }\n });\n };\n\n #deployCommands = async () => {\n const commandsToRegister = this.commands.map((cmd) => cmd.data.toJSON());\n const rest = new REST().setToken(this.#config.token);\n\n try {\n console.log(\n `(ℹ) Started refreshing ${commandsToRegister.length} application (/) commands.`,\n );\n\n let data;\n if (this.#config.mode === \"multi\") {\n data = (await rest.put(\n Routes.applicationCommands(this.#config.clientId),\n { body: commandsToRegister },\n )) as RESTPostAPIApplicationCommandsResult[];\n } else {\n data = (await rest.put(\n Routes.applicationGuildCommands(\n this.#config.clientId,\n this.#config.guildId,\n ),\n { body: commandsToRegister },\n )) as RESTPostAPIApplicationCommandsResult[];\n }\n\n console.log(\n `(✅) Successfully reloaded ${data.length} application (/) commands.`,\n );\n } catch (error) {\n console.error(error);\n }\n };\n\n start = async () => {\n await this.#deployCommands();\n this.#setupInteractionHandler();\n this.client.login(this.#config.token);\n console.log(`(⚡) QuickBotz Initialized Successfully`);\n };\n}\n\nexport default QuickBotz;\n"],"mappings":";;;AAgBA,IAAM,YAAN,MAAM,UAAU;CACd,AAAO;CACP,AAAO;CACP,AAAO;CACP;CAEA,AAAQ,YAAY,QAA0B;AAC5C,QAAKA,SAAU;AACf,OAAK,SAAS,IAAI,OAAO,EAAE,SAAS,OAAO,SAAS,CAAC;AACrD,OAAK,WAAW,IAAI,YAAY;AAChC,OAAK,MAAM,EACT,QAAQ,KAAK,QACd;;CAGH,OAAO,MAAM,QAAwC;AACnD,SAAO,IAAI,UAAU;GAAE,GAAG;GAAQ,MAAM;GAAS,CAAC;;CAGpD,OAAO,OAAO,QAAyC;AACrD,SAAO,IAAI,UAAU;GAAE,GAAG;GAAQ,MAAM;GAAU,CAAC;;CAGrD,iBACE,OACA,OAAgB,OAChB,aACG;AACH,SACI,KAAK,OAAO,KAAK,QAAQ,GAAG,SAA0B;AACpD,UAAO,SAAS,KAAK,KAAK,GAAG,KAAK;IAClC,GACF,KAAK,OAAO,GAAG,QAAQ,GAAG,SAA0B;AAClD,UAAO,SAAS,KAAK,KAAK,GAAG,KAAK;IAClC;;CAGR,gBAAgB,EAAE,MAAM,SAAS,gBAAgC;AAC/D,OAAK,SAAS,IAAI,KAAK,MAAM;GAAE;GAAM;GAAS;GAAc,CAAC;;CAG/D,iCAAiC;AAC/B,OAAK,OAAO,GAAG,OAAO,mBAAmB,OAAO,gBAAgB;AAC9D,OAAI,YAAY,oBAAoB,EAAE;IACpC,MAAM,UAA0B,KAAK,SAAS,IAC5C,YAAY,YACb;AAED,QAAI,CAAC,QACH,QAAO,MAAM,YAAY,MAAM;KAC7B,SAAS;KACT,OAAO,aAAa;KACrB,CAAC;AAGJ,QAAI,YAAY,gBAAgB,IAAI,QAAQ,cAAc;AACxD,SAAI;AACF,YAAM,QAAQ,aAAa,KAAK,KAAK,YAAY;cAC1C,OAAO;AACd,cAAQ,MAAM,MAAM;;AAEtB;;AAGF,QAAI;AACF,WAAM,QAAQ,QAAQ,KAAK,KAAK,YAAY;aACrC,OAAO;AACd,aAAQ,MAAM,MAAM;KACpB,MAAM,UAAU;AAChB,SAAI,YAAY,WAAW,YAAY,SACrC,QAAO,MAAM,YAAY,SAAS;MAChC;MACA,OAAO,aAAa;MACrB,CAAC;AAGJ,WAAM,YAAY,MAAM;MACtB;MACA,OAAO,aAAa;MACrB,CAAC;;;IAGN;;CAGJ,kBAAkB,YAAY;EAC5B,MAAM,qBAAqB,KAAK,SAAS,KAAK,QAAQ,IAAI,KAAK,QAAQ,CAAC;EACxE,MAAM,OAAO,IAAI,MAAM,CAAC,SAAS,MAAKA,OAAQ,MAAM;AAEpD,MAAI;AACF,WAAQ,IACN,0BAA0B,mBAAmB,OAAO,4BACrD;GAED,IAAI;AACJ,OAAI,MAAKA,OAAQ,SAAS,QACxB,QAAQ,MAAM,KAAK,IACjB,OAAO,oBAAoB,MAAKA,OAAQ,SAAS,EACjD,EAAE,MAAM,oBAAoB,CAC7B;OAED,QAAQ,MAAM,KAAK,IACjB,OAAO,yBACL,MAAKA,OAAQ,UACb,MAAKA,OAAQ,QACd,EACD,EAAE,MAAM,oBAAoB,CAC7B;AAGH,WAAQ,IACN,6BAA6B,KAAK,OAAO,4BAC1C;WACM,OAAO;AACd,WAAQ,MAAM,MAAM;;;CAIxB,QAAQ,YAAY;AAClB,QAAM,MAAKC,gBAAiB;AAC5B,QAAKC,yBAA0B;AAC/B,OAAK,OAAO,MAAM,MAAKF,OAAQ,MAAM;AACrC,UAAQ,IAAI,yCAAyC"}
package/package.json CHANGED
@@ -1,20 +1,21 @@
1
1
  {
2
2
  "name": "quickbotz",
3
- "main": "dist/index.js",
4
- "types": "dist/index.d.ts",
5
- "version": "0.0.3",
3
+ "main": "dist/index.mjs",
4
+ "types": "dist/index.d.mts",
5
+ "version": "0.0.4",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
9
  "scripts": {
10
- "build": "tsc"
10
+ "build": "tsdown"
11
11
  },
12
12
  "description": "A simple yet powerful discord bot framework to build discord bots easier & faster",
13
13
  "module": "src/index.ts",
14
14
  "license": "MIT",
15
15
  "type": "module",
16
16
  "devDependencies": {
17
- "@types/bun": "latest"
17
+ "@types/bun": "latest",
18
+ "tsdown": "^0.20.3"
18
19
  },
19
20
  "peerDependencies": {
20
21
  "typescript": "^5"
@@ -1,17 +0,0 @@
1
- import { Client, Collection, type ClientEvents } from "discord.js";
2
- import type { CommandOptions, Context } from "./types";
3
- import type { MultiGuildConfig, SingleGuildConfig } from "./types/QuickBotzOptions";
4
- declare class QuickBotz {
5
- #private;
6
- client: Client;
7
- ctx: Context;
8
- commands: Collection<string, any>;
9
- private constructor();
10
- static multi(config: Omit<MultiGuildConfig, "mode">): QuickBotz;
11
- static single(config: Omit<SingleGuildConfig, "mode">): QuickBotz;
12
- registerEvent: <K extends keyof ClientEvents>(event: K, once: boolean | undefined, callback: (ctx: Context, ...args: ClientEvents[K]) => void | Promise<void>) => void;
13
- registerCommand({ data, execute, autocomplete }: CommandOptions): void;
14
- start: () => Promise<void>;
15
- }
16
- export default QuickBotz;
17
- //# sourceMappingURL=QuickBotz.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuickBotz.d.ts","sourceRoot":"","sources":["../src/QuickBotz.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,UAAU,EAKV,KAAK,YAAY,EAElB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAoB,MAAM,SAAS,CAAC;AACzE,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAElC,cAAM,SAAS;;IACN,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;IACb,QAAQ,EAAE,UAAU,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAGzC,OAAO;IASP,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAInD,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC;IAIrD,aAAa,GAAI,CAAC,SAAS,MAAM,YAAY,EAC3C,OAAO,CAAC,EACR,MAAM,OAAO,YAAQ,EACrB,UAAU,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,UAS1E;IAEF,eAAe,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,cAAc;IAiF/D,KAAK,sBAKH;CACH;AAED,eAAe,SAAS,CAAC"}
package/dist/QuickBotz.js DELETED
@@ -1,97 +0,0 @@
1
- import { Client, Collection, Events, MessageFlags, REST, Routes, } from "discord.js";
2
- class QuickBotz {
3
- client;
4
- ctx;
5
- commands;
6
- #config;
7
- constructor(config) {
8
- this.#config = config;
9
- this.client = new Client({ intents: config.intents });
10
- this.commands = new Collection();
11
- this.ctx = {
12
- client: this.client,
13
- };
14
- }
15
- static multi(config) {
16
- return new QuickBotz({ ...config, mode: "multi" });
17
- }
18
- static single(config) {
19
- return new QuickBotz({ ...config, mode: "single" });
20
- }
21
- registerEvent = (event, once = false, callback) => {
22
- once
23
- ? this.client.once(event, (...args) => {
24
- return callback(this.ctx, ...args);
25
- })
26
- : this.client.on(event, (...args) => {
27
- return callback(this.ctx, ...args);
28
- });
29
- };
30
- registerCommand({ data, execute, autocomplete }) {
31
- this.commands.set(data.name, { data, execute, autocomplete });
32
- }
33
- #setupInteractionHandler = () => {
34
- this.client.on(Events.InteractionCreate, async (interaction) => {
35
- if (interaction.isChatInputCommand()) {
36
- const command = this.commands.get(interaction.commandName);
37
- if (!command) {
38
- return await interaction.reply({
39
- content: `This command cannot be found.`,
40
- flags: MessageFlags.Ephemeral,
41
- });
42
- }
43
- if (interaction.isAutocomplete() && command.autocomplete) {
44
- try {
45
- await command.autocomplete(this.ctx, interaction);
46
- }
47
- catch (error) {
48
- console.error(error);
49
- }
50
- return;
51
- }
52
- try {
53
- await command.execute(this.ctx, interaction);
54
- }
55
- catch (error) {
56
- console.error(error);
57
- const content = "There was an error while executing this command";
58
- if (interaction.replied || interaction.deferred) {
59
- return await interaction.followUp({
60
- content,
61
- flags: MessageFlags.Ephemeral,
62
- });
63
- }
64
- await interaction.reply({
65
- content,
66
- flags: MessageFlags.Ephemeral,
67
- });
68
- }
69
- }
70
- });
71
- };
72
- #deployCommands = async () => {
73
- const commandsToRegister = this.commands.map((cmd) => cmd.data.toJSON());
74
- const rest = new REST().setToken(this.#config.token);
75
- try {
76
- console.log(`(ℹ) Started refreshing ${commandsToRegister.length} application (/) commands.`);
77
- let data;
78
- if (this.#config.mode === "multi") {
79
- data = (await rest.put(Routes.applicationCommands(this.#config.clientId), { body: commandsToRegister }));
80
- }
81
- else {
82
- data = (await rest.put(Routes.applicationGuildCommands(this.#config.clientId, this.#config.guildId), { body: commandsToRegister }));
83
- }
84
- console.log(`(✅) Successfully reloaded ${data.length} application (/) commands.`);
85
- }
86
- catch (error) {
87
- console.error(error);
88
- }
89
- };
90
- start = async () => {
91
- await this.#deployCommands();
92
- this.#setupInteractionHandler();
93
- this.client.login(this.#config.token);
94
- console.log(`(⚡) QuickBotz Initialized Successfully`);
95
- };
96
- }
97
- export default QuickBotz;
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import QuickBotz from "./QuickBotz";
2
- import type { Context } from "./types";
3
- export { QuickBotz, type Context };
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,KAAK,OAAO,EAAE,CAAA"}
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- import QuickBotz from "./QuickBotz";
2
- export { QuickBotz };
@@ -1,8 +0,0 @@
1
- import type { AutocompleteInteraction, ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js";
2
- import type { Context } from "./Context";
3
- export default interface CommandOptions {
4
- data: SlashCommandBuilder;
5
- execute: (ctx: Context, interaction: ChatInputCommandInteraction) => void | Promise<void>;
6
- autocomplete?: (ctx: Context, interaction: AutocompleteInteraction) => void | Promise<void>;
7
- }
8
- //# sourceMappingURL=CommandOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommandOptions.d.ts","sourceRoot":"","sources":["../../src/types/CommandOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC5G,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,CAAC,OAAO,WAAW,cAAc;IACnC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,2BAA2B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACzF,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,uBAAuB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC9F"}
File without changes
@@ -1,5 +0,0 @@
1
- import type { Client } from "discord.js";
2
- export interface Context {
3
- client: Client;
4
- }
5
- //# sourceMappingURL=Context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../src/types/Context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB"}
File without changes
@@ -1,16 +0,0 @@
1
- import type { GatewayIntentBits } from "discord.js";
2
- export interface MultiGuildConfig {
3
- mode: "multi";
4
- clientId: string;
5
- token: string;
6
- intents: GatewayIntentBits[];
7
- }
8
- export interface SingleGuildConfig {
9
- mode: "single";
10
- clientId: string;
11
- guildId: string;
12
- token: string;
13
- intents: GatewayIntentBits[];
14
- }
15
- export type QuickBotzOptions = MultiGuildConfig | SingleGuildConfig;
16
- //# sourceMappingURL=QuickBotzOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuickBotzOptions.d.ts","sourceRoot":"","sources":["../../src/types/QuickBotzOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG,iBAAiB,CAAC"}
File without changes
@@ -1,5 +0,0 @@
1
- import type { QuickBotzOptions } from "./QuickBotzOptions";
2
- import type { Context } from "./Context";
3
- import type CommandOptions from "./CommandOptions";
4
- export type { QuickBotzOptions, Context, CommandOptions };
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAsC,MAAM,oBAAoB,CAAC;AAC/F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AAEnD,YAAY,EAAE,gBAAgB,EAAE,OAAO,EAAE,cAAc,EAAE,CAAA"}
File without changes