Constructors

Properties

_commandAPIData: undefined | Collection<string, ApplicationCommand<{
    guild: GuildResolvable;
}>> = undefined
autoComplete: Collection<string, AutoCompleteOption<undefined>> = ...
chatInput: Collection<string, ChatInputCommand<ChatInputCommandInteraction<CacheType>>> = ...
client: Client<boolean>
componentCommands: Collection<string, ComponentCommandBase<BaseInteraction<CacheType>>> = ...
jobs: Collection<string, Job> = ...
listeners: Collection<string, ClientEventListener<keyof ClientEvents>> = ...
messageContextMenus: Collection<string, MessageContextCommand<MessageContextMenuCommandInteraction<CacheType>>> = ...
userContextMenus: Collection<string, UserContextCommand<UserContextMenuCommandInteraction<CacheType>>> = ...

Accessors

Methods

  • Returns Promise<undefined | Collection<string, ApplicationCommand<{
        guild: GuildResolvable;
    }>>>

  • Tries to display commands using Discord's built-in clickable command links, uses default name if otherwise

    Parameters

    • cmdName: string
    • Optional subCmdName: string

    Returns Promise<string>

  • Parameters

    Returns Promise<undefined | Collection<string, ApplicationCommand<{
        guild: GuildResolvable;
    }>>>

  • Parameters

    Returns {
        command: string;
        key: string;
        newValue: unknown;
        oldValue: unknown;
    }[]

  • Parameters

    Returns {
        autoCompletesCollection: Collection<string, AutoCompleteOption<undefined>>;
        chatInputsCollection: Collection<string, ChatInputCommand<ChatInputCommandInteraction<CacheType>>>;
        componentCommandsCollection: Collection<string, ComponentCommandBase<BaseInteraction<CacheType>>>;
        jobsCollection: Collection<string, Job>;
        listenersCollection: Collection<string, ClientEventListener<keyof ClientEvents>>;
        messageContextMenusCollection: Collection<string, MessageContextCommand<MessageContextMenuCommandInteraction<CacheType>>>;
        userContextMenusCollection: Collection<string, UserContextCommand<UserContextMenuCommandInteraction<CacheType>>>;
    }

    • autoCompletesCollection: Collection<string, AutoCompleteOption<undefined>>
    • chatInputsCollection: Collection<string, ChatInputCommand<ChatInputCommandInteraction<CacheType>>>
    • componentCommandsCollection: Collection<string, ComponentCommandBase<BaseInteraction<CacheType>>>
    • jobsCollection: Collection<string, Job>
    • listenersCollection: Collection<string, ClientEventListener<keyof ClientEvents>>
    • messageContextMenusCollection: Collection<string, MessageContextCommand<MessageContextMenuCommandInteraction<CacheType>>>
    • userContextMenusCollection: Collection<string, UserContextCommand<UserContextMenuCommandInteraction<CacheType>>>
  • Recursively finds and loads all Commands from a given path

    Type Parameters

    Parameters

    Returns {
        added: T[];
        collection: Collection<string, T>;
    }

    • added: T[]
    • collection: Collection<string, T>
  • Check if any changes have been made to the commands since the last time we deployed them, and if so, deploy the changes

    Returns Promise<boolean>

    Wether or not the commands have been deployed because of changes

  • Parameters

    Returns {
        added: any[];
        collection: Collection<string, Job>;
    }

    • added: any[]
    • collection: Collection<string, Job>