nyx Typedoc
    Preparing search index...

    Interface StandaloneCommand<Types>

    A standalone command, i.e. a slash command with no children.

    interface StandaloneCommand<Types extends InteractionTypes = InteractionTypes> {
        autocomplete(
            interaction: Types["AutocompleteInteraction"],
            metadata: Metadata,
        ): Awaitable<void>;
        buildCustomId(bot: NyxBot, extra?: string): string;
        execute(
            interaction: Types["ChatInputInteraction"],
            metadata: Metadata,
        ): Awaitable<void>;
        getCustomIdData(extra?: string): CommandCustomIdData;
        getData(): RESTPostAPIChatInputApplicationCommandsJSONBody;
        getFilter(): CommandFilterResolvable<Types> | null;
        getGuilds(): readonly string[] | null;
        getId(): string;
        getMeta(): Readonly<Metadata> | null;
        handleInteraction(
            interaction: ComponentCommandInteraction<Types>,
            metadata: Metadata,
        ): Awaitable<void>;
        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