diff --git a/src/errors.ts b/src/errors.ts index 06b0288..6356715 100644 --- a/src/errors.ts +++ b/src/errors.ts @@ -9,7 +9,6 @@ import { ParameterType } from "./types/Parameter.js"; */ export class PermissionsError extends Error { private readonly command: BaseCommand; - private readonly user: GuildMember | null; constructor(command: BaseCommand, user?: GuildMember | null) { @@ -29,7 +28,6 @@ export class PermissionsError extends Error { */ export class ParameterTypeError extends TypeError { private readonly stringContent: string; - private readonly type: ParameterType; constructor(s: string, type: ParameterType) { diff --git a/src/managers/CommandManager.ts b/src/managers/CommandManager.ts index 9f4b253..7c498b7 100644 --- a/src/managers/CommandManager.ts +++ b/src/managers/CommandManager.ts @@ -13,9 +13,7 @@ import { CommandType } from "../types/BaseCommand.js"; */ export class CommandManager { private readonly _chatCommandsList: TextCommand[] = []; - private readonly _messagesCommandsList: BaseCommand[] = []; - private readonly _userCommandsList: BaseCommand[] = []; /** diff --git a/src/structures/BaseCommand.ts b/src/structures/BaseCommand.ts index e71096e..158be42 100644 --- a/src/structures/BaseCommand.ts +++ b/src/structures/BaseCommand.ts @@ -47,9 +47,7 @@ export class BaseCommand { * @private */ private readonly function: CommandFunction; - private readonly permissionChecker: (i: Message | CommandInteraction) => boolean; - public static nameRegExp: RegExp = /^[a-zA-Z]{1,32}$/; /** diff --git a/src/structures/TextCommand.ts b/src/structures/TextCommand.ts index 1a6ad19..9c2d69e 100644 --- a/src/structures/TextCommand.ts +++ b/src/structures/TextCommand.ts @@ -42,9 +42,7 @@ export class TextCommand extends BaseCommand { * @type {boolean} */ public readonly slash: boolean; - public static nameRegExp: RegExp = /^[\w-]{1,32}$/; - public static descriptionRegExp: RegExp = /^[a-zA-Z]{1,100}$/; /** diff --git a/src/types/BaseCommand.ts b/src/types/BaseCommand.ts index 7feeaba..bf019b0 100644 --- a/src/types/BaseCommand.ts +++ b/src/types/BaseCommand.ts @@ -5,15 +5,10 @@ import { PermissionCheckTypes, PermissionTypes } from "./permissions.js"; export interface BaseCommandInit { name: string; - guilds?: string[]; - permissionCheck?: PermissionCheckTypes; - permissions?: PermissionTypes; - announceSuccess?: boolean; - function: CommandFunction; } diff --git a/src/types/TextCommand.ts b/src/types/TextCommand.ts index 16d6a18..075c81e 100644 --- a/src/types/TextCommand.ts +++ b/src/types/TextCommand.ts @@ -91,7 +91,6 @@ export interface TextCommandInit { export interface CommandMessageStructure { command: TextCommand; - parameters: InputParameter[]; } @@ -99,6 +98,5 @@ export type GetMode = "ALL" | "PREFIX" | "NO_PREFIX"; export interface PhraseOccurrenceData { command: TextCommand; - type: "NAME" | "ALIAS"; }