Class NoOpRESTClient

Implements

Constructors

Properties

data: APICommandData[] = []

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

    Returns Promise<void>

    A promise that resolves when the commands are cleared

  • Fetches commands from the Discord API

    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.

    Returns Promise<void>

    A promise that resolves when the commands are synced

  • Syncs the local commands to the database

    Returns Promise<void>

    A promise that resolves when the commands are synced