Class ApplicationCommandManager

Constructors

Properties

#bot: AoiClient & {
    slashCommandManager: ApplicationCommandManager;
}

Type declaration

#commands: Collection<string, RESTPostAPIApplicationCommandsJSONBody>
#directory: null | string = null
#providing_cwd: boolean = false

Accessors

  • get cwd(): boolean
  • Returns "true" if the directory contains a custom cwd.

    Returns boolean

  • get directory(): null | string
  • Command specifications directory.

    Returns null | string

Methods

  • Add ApplicationCommandManager plugins into AoiClient.

    Returns void

  • Returns the number of cached commands.

    Returns number

  • Load all application commands inside a directory.

    Parameters

    • dir: string

      Application commands directory.

    • providing_cwd: boolean = false

      Set to "true" if your path provides a custom cwd.

    Returns Promise<void>

  • Sync all application commands with the Discord API.

    Parameters

    • guildIDs: undefined | string[]

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

Generated using TypeDoc