Implements

Properties

Data for all commands that the client has registered

Methods

  • Checks if local commands are in sync with the database & Discord API

    Returns Promise<CommandCheckResponse>

    A response object with the sync status, consisting of new, updated, and deleted commands

  • Clears commands from the Discord API

    Parameters

    • OptionalguildId: null | string

      The guild ID to clear commands for, or none for global

    Returns Promise<void>

    A promise that resolves when the commands are cleared

  • Fetches commands from the Discord API

    Parameters

    • guildId: null | string

      The guild ID to fetch commands for, or none for global

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

    A promise that resolves with the command data

  • Syncs commands to the Discord API and our database. An API call is only made if there are new, updated, or deleted commands.

    Parameters

    Returns Promise<void>

    A promise that resolves when the commands are synced

  • Parameters

    Returns Promise<void>