Class InteractionManager

Interaction management utility for Artibot

Hierarchy

  • InteractionManager

Constructors

Properties

clientId: string

Discord bot client ID

commandJSONData: (RESTPostAPIChatInputApplicationCommandsJSONBody | RESTPostAPIContextMenuApplicationCommandsJSONBody)[] = []

JSON data of all slash commands and other interactions

debug: boolean

Debug mode

devMode: boolean

Dev mode

localizer: Localizer

Localizer instance

rest: REST

Discord.js REST API utilitie

testGuildId: string

Test guild ID

Methods

  • Generate data to send to Discord API to register interactions

    Method

    Parameters

    • modules: Collection<string, Module>

      List of the modules to generate data from

    Returns void

  • Register interactions in Discord API

    Returns

    True if everything went good, false if there was a problem.

    Method

    Async

    Returns Promise<boolean>

Generated using TypeDoc v0.23.28