Skip to main content
Version: Next

ValidationProps

ValidationProps

Represents the properties required for validation functions. It includes the client, interaction, command object, and handler.

Signature
interface ValidationProps {
client: Client<true>;
interaction:
| ChatInputCommandInteraction
| AutocompleteInteraction
| ContextMenuCommandInteraction;
commandObj: CommandObject;
handler: CommandKit;
}

client

property
Client<true>

The Discord client instance.

interaction

property
| ChatInputCommandInteraction | AutocompleteInteraction | ContextMenuCommandInteraction

The interaction that triggered the command.

commandObj

The command object associated with the interaction.

handler

property

The CommandKit handler instance.