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