zumito-framework 1.1.45 → 1.1.46

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 (55) hide show
  1. package/dist/TranslationManager.d.ts +15 -15
  2. package/dist/TranslationManager.js +41 -41
  3. package/dist/ZumitoFramework.d.ts +51 -51
  4. package/dist/ZumitoFramework.js +312 -312
  5. package/dist/baseModule/BaseModule.d.ts +6 -6
  6. package/dist/baseModule/BaseModule.js +16 -16
  7. package/dist/baseModule/events/discord/interactionCreate.d.ts +6 -6
  8. package/dist/baseModule/events/discord/interactionCreate.js +50 -50
  9. package/dist/baseModule/events/discord/messageCreate.d.ts +16 -16
  10. package/dist/baseModule/events/discord/messageCreate.js +233 -233
  11. package/dist/baseModule/index.d.ts +6 -6
  12. package/dist/baseModule/index.js +15 -15
  13. package/dist/baseModule/models/errors.json +13 -13
  14. package/dist/baseModule/models/guild.json +22 -22
  15. package/dist/definitions/ApiResponse.d.ts +4 -4
  16. package/dist/definitions/ApiResponse.js +16 -16
  17. package/dist/index.d.ts +17 -17
  18. package/dist/index.js +12 -12
  19. package/dist/managers/EmojiManager.d.ts +11 -11
  20. package/dist/managers/EmojiManager.js +32 -32
  21. package/dist/types/Command.d.ts +24 -24
  22. package/dist/types/Command.js +25 -25
  23. package/dist/types/CommandArgDefinition.d.ts +7 -7
  24. package/dist/types/CommandArgDefinition.js +1 -1
  25. package/dist/types/CommandArguments.d.ts +8 -8
  26. package/dist/types/CommandArguments.js +15 -15
  27. package/dist/types/CommandChoiceDefinition.d.ts +4 -4
  28. package/dist/types/CommandChoiceDefinition.js +1 -1
  29. package/dist/types/CommandParameters.d.ts +18 -18
  30. package/dist/types/CommandParameters.js +1 -1
  31. package/dist/types/CommandType.d.ts +6 -6
  32. package/dist/types/CommandType.js +6 -6
  33. package/dist/types/Commands.d.ts +23 -23
  34. package/dist/types/Commands.js +26 -26
  35. package/dist/types/EventParameters.d.ts +8 -8
  36. package/dist/types/EventParameters.js +1 -1
  37. package/dist/types/FrameworkEvent.d.ts +5 -5
  38. package/dist/types/FrameworkEvent.js +4 -4
  39. package/dist/types/FrameworkSettings.d.ts +11 -11
  40. package/dist/types/FrameworkSettings.js +1 -1
  41. package/dist/types/Module.d.ts +25 -25
  42. package/dist/types/Module.js +191 -191
  43. package/dist/types/SelectMenuParameters.d.ts +9 -9
  44. package/dist/types/SelectMenuParameters.js +1 -1
  45. package/dist/types/Translation.d.ts +9 -9
  46. package/dist/types/Translation.js +31 -31
  47. package/dist/utils/EmojiFallback.d.ts +6 -6
  48. package/dist/utils/EmojiFallback.js +14 -14
  49. package/dist/utils/TextFormatter.d.ts +26 -26
  50. package/dist/utils/TextFormatter.js +82 -82
  51. package/package.json +1 -1
  52. package/plop-templates/command.js.hbs +16 -16
  53. package/plop-templates/translation.json.hbs +7 -7
  54. package/plopfile.js +88 -88
  55. package/templateGenerator.mjs +25 -25
@@ -1,6 +1,6 @@
1
- import { Module } from "../types/Module.js";
2
- import { ZumitoFramework } from "../ZumitoFramework.js";
3
- export declare class baseModule extends Module {
4
- constructor(modulePath: string, framework: ZumitoFramework);
5
- registerEvents(): Promise<any>;
6
- }
1
+ import { Module } from "../types/Module.js";
2
+ import { ZumitoFramework } from "../ZumitoFramework.js";
3
+ export declare class baseModule extends Module {
4
+ constructor(modulePath: string, framework: ZumitoFramework);
5
+ registerEvents(): Promise<any>;
6
+ }
@@ -1,15 +1,15 @@
1
- import { Module } from "../types/Module.js";
2
- import { InteractionCreate } from "./events/discord/interactionCreate.js";
3
- import { MessageCreate } from "./events/discord/messageCreate.js";
4
- export class baseModule extends Module {
5
- constructor(modulePath, framework) {
6
- super(modulePath, framework);
7
- }
8
- async registerEvents() {
9
- this.events.set('interactionCreate', new InteractionCreate());
10
- this.events.set('messageCreate', new MessageCreate());
11
- this.events.forEach(event => {
12
- this.registerDiscordEvent(event);
13
- });
14
- }
15
- }
1
+ import { Module } from "../types/Module.js";
2
+ import { InteractionCreate } from "./events/discord/interactionCreate.js";
3
+ import { MessageCreate } from "./events/discord/messageCreate.js";
4
+ export class baseModule extends Module {
5
+ constructor(modulePath, framework) {
6
+ super(modulePath, framework);
7
+ }
8
+ async registerEvents() {
9
+ this.events.set('interactionCreate', new InteractionCreate());
10
+ this.events.set('messageCreate', new MessageCreate());
11
+ this.events.forEach(event => {
12
+ this.registerDiscordEvent(event);
13
+ });
14
+ }
15
+ }
@@ -1,14 +1,14 @@
1
- {
2
- "id": "string",
3
- "command": {
4
- "command": "string",
5
- "args": {
6
- "type": "array"
7
- }
8
- },
9
- "error": {
10
- "title": "string",
11
- "message": "string",
12
- "stacktrace": "string"
13
- }
1
+ {
2
+ "id": "string",
3
+ "command": {
4
+ "command": "string",
5
+ "args": {
6
+ "type": "array"
7
+ }
8
+ },
9
+ "error": {
10
+ "title": "string",
11
+ "message": "string",
12
+ "stacktrace": "string"
13
+ }
14
14
  }
@@ -1,23 +1,23 @@
1
- {
2
- "guild_id": {
3
- "type": "string",
4
- "index": true,
5
- "unique": true
6
- },
7
- "lang": {
8
- "type": "string",
9
- "default": "en"
10
- },
11
- "prefix": {
12
- "type": "string",
13
- "default": "z-"
14
- },
15
- "public": {
16
- "type": "boolean",
17
- "default": false
18
- },
19
- "deleteCommands": {
20
- "type": "boolean",
21
- "default": false
22
- }
1
+ {
2
+ "guild_id": {
3
+ "type": "string",
4
+ "index": true,
5
+ "unique": true
6
+ },
7
+ "lang": {
8
+ "type": "string",
9
+ "default": "en"
10
+ },
11
+ "prefix": {
12
+ "type": "string",
13
+ "default": "z-"
14
+ },
15
+ "public": {
16
+ "type": "boolean",
17
+ "default": false
18
+ },
19
+ "deleteCommands": {
20
+ "type": "boolean",
21
+ "default": false
22
+ }
23
23
  }
@@ -1,4 +1,4 @@
1
- export declare class ApiResponse {
2
- static notFoundResponse(res: any, msg: any): any;
3
- static unauthorizedResponse(res: any, msg: any): any;
4
- }
1
+ export declare class ApiResponse {
2
+ static notFoundResponse(res: any, msg: any): any;
3
+ static unauthorizedResponse(res: any, msg: any): any;
4
+ }
@@ -1,16 +1,16 @@
1
- export class ApiResponse {
2
- static notFoundResponse(res, msg) {
3
- let data = {
4
- message: msg,
5
- };
6
- return res.status(404).json(data);
7
- }
8
- ;
9
- static unauthorizedResponse(res, msg) {
10
- let data = {
11
- message: msg,
12
- };
13
- return res.status(401).json(data);
14
- }
15
- ;
16
- }
1
+ export class ApiResponse {
2
+ static notFoundResponse(res, msg) {
3
+ let data = {
4
+ message: msg,
5
+ };
6
+ return res.status(404).json(data);
7
+ }
8
+ ;
9
+ static unauthorizedResponse(res, msg) {
10
+ let data = {
11
+ message: msg,
12
+ };
13
+ return res.status(401).json(data);
14
+ }
15
+ ;
16
+ }
package/dist/index.d.ts CHANGED
@@ -1,17 +1,17 @@
1
- import { ApiResponse } from './definitions/ApiResponse.js';
2
- import { Command } from './types/Command.js';
3
- import { CommandArgDefinition } from './types/CommandArgDefinition.js';
4
- import { CommandArguments } from './types/CommandArguments.js';
5
- import { CommandChoiceDefinition } from './types/CommandChoiceDefinition.js';
6
- import { CommandParameters } from './types/CommandParameters.js';
7
- import { CommandType } from './types/CommandType.js';
8
- import { FrameworkEvent } from './types/FrameworkEvent.js';
9
- import { FrameworkSettings } from './types/FrameworkSettings.js';
10
- import { Module } from './types/Module.js';
11
- import { SelectMenuParameters } from './types/SelectMenuParameters.js';
12
- import { TextFormatter } from './utils/TextFormatter.js';
13
- import { Translation } from './types/Translation.js';
14
- import { TranslationManager } from './TranslationManager.js';
15
- import { ZumitoFramework } from './ZumitoFramework.js';
16
- import { EmojiFallback } from './utils/EmojiFallback.js';
17
- export { ZumitoFramework, FrameworkSettings, Command, Module, CommandParameters, CommandArguments, FrameworkEvent, Translation, TranslationManager, ApiResponse, SelectMenuParameters, CommandType, CommandArgDefinition, CommandChoiceDefinition, TextFormatter, EmojiFallback };
1
+ import { ApiResponse } from './definitions/ApiResponse.js';
2
+ import { Command } from './types/Command.js';
3
+ import { CommandArgDefinition } from './types/CommandArgDefinition.js';
4
+ import { CommandArguments } from './types/CommandArguments.js';
5
+ import { CommandChoiceDefinition } from './types/CommandChoiceDefinition.js';
6
+ import { CommandParameters } from './types/CommandParameters.js';
7
+ import { CommandType } from './types/CommandType.js';
8
+ import { FrameworkEvent } from './types/FrameworkEvent.js';
9
+ import { FrameworkSettings } from './types/FrameworkSettings.js';
10
+ import { Module } from './types/Module.js';
11
+ import { SelectMenuParameters } from './types/SelectMenuParameters.js';
12
+ import { TextFormatter } from './utils/TextFormatter.js';
13
+ import { Translation } from './types/Translation.js';
14
+ import { TranslationManager } from './TranslationManager.js';
15
+ import { ZumitoFramework } from './ZumitoFramework.js';
16
+ import { EmojiFallback } from './utils/EmojiFallback.js';
17
+ export { ZumitoFramework, FrameworkSettings, Command, Module, CommandParameters, CommandArguments, FrameworkEvent, Translation, TranslationManager, ApiResponse, SelectMenuParameters, CommandType, CommandArgDefinition, CommandChoiceDefinition, TextFormatter, EmojiFallback };
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { ApiResponse } from './definitions/ApiResponse.js';
2
- import { Command } from './types/Command.js';
3
- import { CommandArguments } from './types/CommandArguments.js';
4
- import { CommandType } from './types/CommandType.js';
5
- import { FrameworkEvent } from './types/FrameworkEvent.js';
6
- import { Module } from './types/Module.js';
7
- import { TextFormatter } from './utils/TextFormatter.js';
8
- import { Translation } from './types/Translation.js';
9
- import { TranslationManager } from './TranslationManager.js';
10
- import { ZumitoFramework } from './ZumitoFramework.js';
11
- import { EmojiFallback } from './utils/EmojiFallback.js';
12
- export { ZumitoFramework, Command, Module, CommandArguments, FrameworkEvent, Translation, TranslationManager, ApiResponse, CommandType, TextFormatter, EmojiFallback };
1
+ import { ApiResponse } from './definitions/ApiResponse.js';
2
+ import { Command } from './types/Command.js';
3
+ import { CommandArguments } from './types/CommandArguments.js';
4
+ import { CommandType } from './types/CommandType.js';
5
+ import { FrameworkEvent } from './types/FrameworkEvent.js';
6
+ import { Module } from './types/Module.js';
7
+ import { TextFormatter } from './utils/TextFormatter.js';
8
+ import { Translation } from './types/Translation.js';
9
+ import { TranslationManager } from './TranslationManager.js';
10
+ import { ZumitoFramework } from './ZumitoFramework.js';
11
+ import { EmojiFallback } from './utils/EmojiFallback.js';
12
+ export { ZumitoFramework, Command, Module, CommandArguments, FrameworkEvent, Translation, TranslationManager, ApiResponse, CommandType, TextFormatter, EmojiFallback };
@@ -1,11 +1,11 @@
1
- import { Client } from "discord.js";
2
- export declare class EmojiManager {
3
- /**
4
- * @param {Client} client - The client client instance.
5
- */
6
- client: Client;
7
- emojiFallbacks: Map<string, string>;
8
- constructor(client: Client);
9
- getEmojiByName(name: string): string;
10
- registerEmojiFallback(id: string, fallback: string): void;
11
- }
1
+ import { Client } from "discord.js";
2
+ export declare class EmojiManager {
3
+ /**
4
+ * @param {Client} client - The client client instance.
5
+ */
6
+ client: Client;
7
+ emojiFallbacks: Map<string, string>;
8
+ constructor(client: Client);
9
+ getEmojiByName(name: string): string;
10
+ registerEmojiFallback(id: string, fallback: string): void;
11
+ }
@@ -1,32 +1,32 @@
1
- export class EmojiManager {
2
- /**
3
- * @param {Client} client - The client client instance.
4
- */
5
- client;
6
- emojiFallbacks = new Map();
7
- constructor(client) {
8
- this.client = client;
9
- }
10
- getEmojiByName(name) {
11
- let emoji = this.client.emojis.cache.find((e) => e.name === name);
12
- if (emoji) {
13
- return emoji.toString();
14
- }
15
- else if (this.emojiFallbacks.has(name)) {
16
- const fallback = this.emojiFallbacks.get(name);
17
- emoji = this.client.emojis.cache.find((e) => e.name === fallback);
18
- if (emoji) {
19
- return emoji.toString();
20
- }
21
- else {
22
- return fallback;
23
- }
24
- }
25
- else {
26
- throw new Error(`Emoji ${name} not found.`);
27
- }
28
- }
29
- registerEmojiFallback(id, fallback) {
30
- this.emojiFallbacks.set(id, fallback);
31
- }
32
- }
1
+ export class EmojiManager {
2
+ /**
3
+ * @param {Client} client - The client client instance.
4
+ */
5
+ client;
6
+ emojiFallbacks = new Map();
7
+ constructor(client) {
8
+ this.client = client;
9
+ }
10
+ getEmojiByName(name) {
11
+ let emoji = this.client.emojis.cache.find((e) => e.name === name);
12
+ if (emoji) {
13
+ return emoji.toString();
14
+ }
15
+ else if (this.emojiFallbacks.has(name)) {
16
+ const fallback = this.emojiFallbacks.get(name);
17
+ emoji = this.client.emojis.cache.find((e) => e.name === fallback);
18
+ if (emoji) {
19
+ return emoji.toString();
20
+ }
21
+ else {
22
+ return fallback;
23
+ }
24
+ }
25
+ else {
26
+ throw new Error(`Emoji ${name} not found.`);
27
+ }
28
+ }
29
+ registerEmojiFallback(id, fallback) {
30
+ this.emojiFallbacks.set(id, fallback);
31
+ }
32
+ }
@@ -1,24 +1,24 @@
1
- import { CommandArgDefinition } from "./CommandArgDefinition.js";
2
- import { CommandParameters } from "./CommandParameters.js";
3
- import { SelectMenuParameters } from "./SelectMenuParameters.js";
4
- export declare abstract class Command {
5
- name: string;
6
- categories: string[];
7
- aliases: string[];
8
- examples: string[];
9
- userPermissions: bigint[];
10
- botPermissions: string[];
11
- hidden: boolean;
12
- adminOnly: boolean;
13
- nsfw: boolean;
14
- cooldown: number;
15
- slashCommand: boolean;
16
- dm: boolean;
17
- args: CommandArgDefinition[];
18
- type: string;
19
- constructor();
20
- abstract execute({ message, interaction, args, client, framework }: CommandParameters): void;
21
- executePrefixCommand({ message, interaction, args, client, framework }: CommandParameters): void;
22
- executeSlashCommand({ message, interaction, args, client, framework }: CommandParameters): void;
23
- abstract selectMenu({ path, interaction, client, framework }: SelectMenuParameters): void;
24
- }
1
+ import { CommandArgDefinition } from "./CommandArgDefinition.js";
2
+ import { CommandParameters } from "./CommandParameters.js";
3
+ import { SelectMenuParameters } from "./SelectMenuParameters.js";
4
+ export declare abstract class Command {
5
+ name: string;
6
+ categories: string[];
7
+ aliases: string[];
8
+ examples: string[];
9
+ userPermissions: bigint[];
10
+ botPermissions: string[];
11
+ hidden: boolean;
12
+ adminOnly: boolean;
13
+ nsfw: boolean;
14
+ cooldown: number;
15
+ slashCommand: boolean;
16
+ dm: boolean;
17
+ args: CommandArgDefinition[];
18
+ type: string;
19
+ constructor();
20
+ abstract execute({ message, interaction, args, client, framework }: CommandParameters): void;
21
+ executePrefixCommand({ message, interaction, args, client, framework }: CommandParameters): void;
22
+ executeSlashCommand({ message, interaction, args, client, framework }: CommandParameters): void;
23
+ abstract selectMenu({ path, interaction, client, framework }: SelectMenuParameters): void;
24
+ }
@@ -1,25 +1,25 @@
1
- import { CommandType } from "./CommandType.js";
2
- export class Command {
3
- name = this.constructor.name.toLowerCase();
4
- categories = [];
5
- aliases = [];
6
- examples = [];
7
- userPermissions = [];
8
- botPermissions = [];
9
- hidden = false;
10
- adminOnly = false;
11
- nsfw = false;
12
- cooldown = 0;
13
- slashCommand = false;
14
- dm = false;
15
- args = [];
16
- type = CommandType.prefix;
17
- constructor() {
18
- }
19
- executePrefixCommand({ message, interaction, args, client, framework }) {
20
- this.execute({ message, interaction, args, client, framework });
21
- }
22
- executeSlashCommand({ message, interaction, args, client, framework }) {
23
- this.execute({ message, interaction, args, client, framework });
24
- }
25
- }
1
+ import { CommandType } from "./CommandType.js";
2
+ export class Command {
3
+ name = this.constructor.name.toLowerCase();
4
+ categories = [];
5
+ aliases = [];
6
+ examples = [];
7
+ userPermissions = [];
8
+ botPermissions = [];
9
+ hidden = false;
10
+ adminOnly = false;
11
+ nsfw = false;
12
+ cooldown = 0;
13
+ slashCommand = false;
14
+ dm = false;
15
+ args = [];
16
+ type = CommandType.prefix;
17
+ constructor() {
18
+ }
19
+ executePrefixCommand({ message, interaction, args, client, framework }) {
20
+ this.execute({ message, interaction, args, client, framework });
21
+ }
22
+ executeSlashCommand({ message, interaction, args, client, framework }) {
23
+ this.execute({ message, interaction, args, client, framework });
24
+ }
25
+ }
@@ -1,7 +1,7 @@
1
- import { CommandChoiceDefinition } from './CommandChoiceDefinition.js';
2
- export interface CommandArgDefinition {
3
- name: string;
4
- optional: boolean;
5
- type: string;
6
- choices?: CommandChoiceDefinition[] | Function;
7
- }
1
+ import { CommandChoiceDefinition } from './CommandChoiceDefinition.js';
2
+ export interface CommandArgDefinition {
3
+ name: string;
4
+ optional: boolean;
5
+ type: string;
6
+ choices?: CommandChoiceDefinition[] | Function;
7
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,8 +1,8 @@
1
- import { CommandInteraction } from "discord.js";
2
- export declare class CommandArguments {
3
- args: any;
4
- constructor(args?: {});
5
- get(key: any): any;
6
- add(key: any, value: any): void;
7
- static parseFromInteraction(interaction: CommandInteraction): CommandArguments;
8
- }
1
+ import { CommandInteraction } from "discord.js";
2
+ export declare class CommandArguments {
3
+ args: any;
4
+ constructor(args?: {});
5
+ get(key: any): any;
6
+ add(key: any, value: any): void;
7
+ static parseFromInteraction(interaction: CommandInteraction): CommandArguments;
8
+ }
@@ -1,15 +1,15 @@
1
- export class CommandArguments {
2
- args = {};
3
- constructor(args = {}) {
4
- this.args = args;
5
- }
6
- get(key) {
7
- return this.args[key];
8
- }
9
- add(key, value) {
10
- this.args[key] = value;
11
- }
12
- static parseFromInteraction(interaction) {
13
- return new CommandArguments(interaction.options);
14
- }
15
- }
1
+ export class CommandArguments {
2
+ args = {};
3
+ constructor(args = {}) {
4
+ this.args = args;
5
+ }
6
+ get(key) {
7
+ return this.args[key];
8
+ }
9
+ add(key, value) {
10
+ this.args[key] = value;
11
+ }
12
+ static parseFromInteraction(interaction) {
13
+ return new CommandArguments(interaction.options);
14
+ }
15
+ }
@@ -1,4 +1,4 @@
1
- export interface CommandChoiceDefinition {
2
- name: string;
3
- value: string;
4
- }
1
+ export interface CommandChoiceDefinition {
2
+ name: string;
3
+ value: string;
4
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,18 +1,18 @@
1
- import { Client, CommandInteraction, Message } from "discord.js";
2
- import { ZumitoFramework } from "../ZumitoFramework.js";
3
- /**
4
- * @class CommandParameters
5
- * @classdesc Parameters passed to a command execution.
6
- * @property {Client} client - The client client instance.
7
- * @property {Message} message - The message that triggered the command.
8
- * @property {interaction} interaction - The interaction that triggered the command.
9
- * @property {args} args - The arguments passed to the command.
10
- */
11
- export interface CommandParameters {
12
- message?: Message;
13
- interaction?: CommandInteraction;
14
- args: Map<String, any>;
15
- client: Client;
16
- framework: ZumitoFramework;
17
- guildSettings?: any;
18
- }
1
+ import { Client, CommandInteraction, Message } from "discord.js";
2
+ import { ZumitoFramework } from "../ZumitoFramework.js";
3
+ /**
4
+ * @class CommandParameters
5
+ * @classdesc Parameters passed to a command execution.
6
+ * @property {Client} client - The client client instance.
7
+ * @property {Message} message - The message that triggered the command.
8
+ * @property {interaction} interaction - The interaction that triggered the command.
9
+ * @property {args} args - The arguments passed to the command.
10
+ */
11
+ export interface CommandParameters {
12
+ message?: Message;
13
+ interaction?: CommandInteraction;
14
+ args: Map<String, any>;
15
+ client: Client;
16
+ framework: ZumitoFramework;
17
+ guildSettings?: any;
18
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,6 +1,6 @@
1
- export declare const CommandType: {
2
- prefix: string;
3
- slash: string;
4
- separated: string;
5
- any: string;
6
- };
1
+ export declare const CommandType: {
2
+ prefix: string;
3
+ slash: string;
4
+ separated: string;
5
+ any: string;
6
+ };
@@ -1,6 +1,6 @@
1
- export const CommandType = {
2
- prefix: 'prefix',
3
- slash: 'slash',
4
- separated: 'separated',
5
- any: 'any',
6
- };
1
+ export const CommandType = {
2
+ prefix: 'prefix',
3
+ slash: 'slash',
4
+ separated: 'separated',
5
+ any: 'any',
6
+ };
@@ -1,23 +1,23 @@
1
- import { CommandParameters } from "./CommandParameters";
2
- import { SelectMenuParameters } from "./SelectMenuParameters";
3
- export declare abstract class Command {
4
- name: string;
5
- categories: string[];
6
- aliases?: string[];
7
- examples?: string[];
8
- permissions?: bigint[];
9
- botPermissions?: string[];
10
- hidden?: boolean;
11
- adminOnly?: boolean;
12
- nsfw?: boolean;
13
- cooldown?: number;
14
- slashCommand?: boolean;
15
- dm: boolean;
16
- args: CommandArgDefinition[];
17
- type: string;
18
- constructor();
19
- abstract execute({ message, interaction, args, client, framework }: CommandParameters): void;
20
- executePrefixCommand({ message, interaction, args, client, framework }: CommandParameters): void;
21
- executeSlashCommand({ message, interaction, args, client, framework }: CommandParameters): void;
22
- selectMenu({ path, interaction, client, framework }: SelectMenuParameters): void;
23
- }
1
+ import { CommandParameters } from "./CommandParameters";
2
+ import { SelectMenuParameters } from "./SelectMenuParameters";
3
+ export declare abstract class Command {
4
+ name: string;
5
+ categories: string[];
6
+ aliases?: string[];
7
+ examples?: string[];
8
+ permissions?: bigint[];
9
+ botPermissions?: string[];
10
+ hidden?: boolean;
11
+ adminOnly?: boolean;
12
+ nsfw?: boolean;
13
+ cooldown?: number;
14
+ slashCommand?: boolean;
15
+ dm: boolean;
16
+ args: CommandArgDefinition[];
17
+ type: string;
18
+ constructor();
19
+ abstract execute({ message, interaction, args, client, framework }: CommandParameters): void;
20
+ executePrefixCommand({ message, interaction, args, client, framework }: CommandParameters): void;
21
+ executeSlashCommand({ message, interaction, args, client, framework }: CommandParameters): void;
22
+ selectMenu({ path, interaction, client, framework }: SelectMenuParameters): void;
23
+ }