Class ClientManager

Constructors

Properties

commands: Manager<
    string,
    AnyCommand,
    Command<CommandType, boolean, boolean, unknown, null>,
>
jobs: Manager<string, ClientJob>
listeners: ClientEventListener<keyof ClientEvents>[] = []

Accessors

  • get apiCommands(): Collection<string, APICommand>

    Returns Collection<string, APICommand>

  • get flatCommandCategories(): string[]

    A list of unique categories across all active commands.

    Returns string[]

  • get flatCommandPermissions(): PermissionResolvable[]

    A list of unique permissions that are required by the client across all commands.

    Returns PermissionResolvable[]

Methods

  • Parameters

    • client: Client<true>
    • name: string
    • Optionaloptions: { guildId?: string; subcommand?: string; subcommandGroup?: string }

    Returns Promise<string>

  • Parameters

    • client: Client<true>
    • OptionalguildId: null | string

    Returns string

  • Initializes the command manager with a ready/logged in client. This function should be called after registering all commands.

    Parameters

    • client: Client<true>

      The client to initialize the command manager with

    • Optionaloptions: { omitJobs?: boolean; omitListeners?: boolean }

    Returns AbstractRESTClient

    The REST client instance, with all commands registered

  • Returns void