Archived
removed general command type from basecommand types
This commit is contained in:
1 parent
1fac2e2ad8
commit
45c61d12cd
1 file changed
-5
@@ -3,9 +3,6 @@ import { InputParameter } from "../structures/Parameter.js";
|
|||||||
import { ParameterResolvable } from "./Parameter.js";
|
import { ParameterResolvable } from "./Parameter.js";
|
||||||
import { PermissionCheckTypes, PermissionTypes } from "./permissions.js";
|
import { PermissionCheckTypes, PermissionTypes } from "./permissions.js";
|
||||||
import { BaseCommand } from "../structures/BaseCommand.js";
|
import { BaseCommand } from "../structures/BaseCommand.js";
|
||||||
import { TextCommand } from "../structures/TextCommand.js";
|
|
||||||
import { MessageCommand } from "../structures/MessageCommand.js";
|
|
||||||
import { UserCommand } from "../structures/UserCommand.js";
|
|
||||||
|
|
||||||
export interface BaseCommandInit {
|
export interface BaseCommandInit {
|
||||||
name: string;
|
name: string;
|
||||||
@@ -29,5 +26,3 @@ export interface PhraseOccurrenceData {
|
|||||||
command: BaseCommand;
|
command: BaseCommand;
|
||||||
type: "NAME" | "ALIAS";
|
type: "NAME" | "ALIAS";
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CommandStructure<T> = T extends "MESSAGE" ? MessageCommand : T extends "USER" ? UserCommand : T extends "CHAT" ? TextCommand : never;
|
|
||||||
Reference in new issue
Block a user