Commands

Defined in index, you can import them from it.

Command

property name
type annotation

callback

callback (below)

cooldown

number

used

date

callback: (client: Client, interaction: any, options: CallbackOptions) => Promise<void>;

CallbackOptions

property name
type annotation

cooldown

number

used

date

Has an alias called CommandOptions defined in engine. Can be imported from engine instead of index

CommandOptions

Defined in index, you can import it from it

import { CommandOptions } from "index"
export type CommandOptions = {
	command: {
		guild: string[];
	};
};

Last updated