changed CommandInteractionData to ReadonlyMap

This commit is contained in:
mmacierzanka committed 2021-09-08 20:47:58 +02:00
1 parent 316dc08965
commit e76d951d96
1 file changed
+2 -2
+2 -2
View File
@@ -2,12 +2,12 @@ import { BaseCommand } from "../BaseCommand.js";
import { ChatCommand } from "../ChatCommand.js";
import { MessageCommand } from "../MessageCommand.js";
import { UserCommand } from "../UserCommand.js";
import { InputParameter } from "../../structures/Parameter.js";
import { Interaction, Message } from "discord.js";
import { ParameterResolvable } from "structures/types/Parameter.js";
export type CommandResolvable = BaseCommand | ChatCommand | MessageCommand | UserCommand;
export interface CommandInteractionData<T extends Interaction | Message> {
command: T extends Interaction ? BaseCommand : ChatCommand;
parameters: InputParameter[];
parameters: ReadonlyMap<string, ParameterResolvable>;
}