Archived
changed CommandInteractionData to ReadonlyMap
This commit is contained in:
1 parent
316dc08965
commit
e76d951d96
1 file changed
+2
-2
@@ -2,12 +2,12 @@ import { BaseCommand } from "../BaseCommand.js";
|
|||||||
import { ChatCommand } from "../ChatCommand.js";
|
import { ChatCommand } from "../ChatCommand.js";
|
||||||
import { MessageCommand } from "../MessageCommand.js";
|
import { MessageCommand } from "../MessageCommand.js";
|
||||||
import { UserCommand } from "../UserCommand.js";
|
import { UserCommand } from "../UserCommand.js";
|
||||||
import { InputParameter } from "../../structures/Parameter.js";
|
|
||||||
import { Interaction, Message } from "discord.js";
|
import { Interaction, Message } from "discord.js";
|
||||||
|
import { ParameterResolvable } from "structures/types/Parameter.js";
|
||||||
|
|
||||||
export type CommandResolvable = BaseCommand | ChatCommand | MessageCommand | UserCommand;
|
export type CommandResolvable = BaseCommand | ChatCommand | MessageCommand | UserCommand;
|
||||||
|
|
||||||
export interface CommandInteractionData<T extends Interaction | Message> {
|
export interface CommandInteractionData<T extends Interaction | Message> {
|
||||||
command: T extends Interaction ? BaseCommand : ChatCommand;
|
command: T extends Interaction ? BaseCommand : ChatCommand;
|
||||||
parameters: InputParameter[];
|
parameters: ReadonlyMap<string, ParameterResolvable>;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user