nyx Typedoc
    Preparing search index...

    Interface Command<Data, Types>

    The base of every command that can be executed or stored by the bot.

    interface Command<
        Data extends Nameable,
        Types extends InteractionTypes = InteractionTypes,
    > {
        getData(): Data;
        getMeta(): Readonly<Metadata> | null;
        isContextMenu(): this is ContextMenuCommand<Types>;
        isParent(): this is ParentCommand<Types>;
        isStandalone(): this is StandaloneCommand<Types>;
        isSubCommand(): this is SubCommand<Types>;
        isSubCommandGroup(): this is SubCommandGroup<Types>;
    }

    Type Parameters

    Hierarchy (View Summary)

    Implemented by

    Index