added TargetID to CommandInteractionData

This commit is contained in:
mmacierzanka committed 2021-09-08 21:32:12 +02:00
1 parent c5718d7c57
commit f92997416d
1 file changed
+2 -1
+2 -1
View File
@@ -4,10 +4,11 @@ import { MessageCommand } from "../MessageCommand.js";
import { UserCommand } from "../UserCommand.js"; import { UserCommand } from "../UserCommand.js";
import { Interaction, Message } from "discord.js"; import { Interaction, Message } from "discord.js";
import { ParameterResolvable } from "structures/types/Parameter.js"; import { ParameterResolvable } from "structures/types/Parameter.js";
import { TargetID } from "structures/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: ReadonlyMap<string, ParameterResolvable>; parameters: ReadonlyMap<string, ParameterResolvable> | TargetID;
} }