InteractionManager

The interaction manager.

Constructor

new InteractionManager(client, options)

The constructor of the interaction manager class.

Parameters:
NameTypeDescription
clientClient

The client

optionsInteractionManagerOptions

The options of the interaction manager

Extends

  • EventEmitter

Members

button :ButtonInteractionManager|null

The interaction manager for button interactions

client :Client

The client

Type:
  • Client

context :ContextInteractionManager|null

The interaction manager for context interactions

The interaction manager for modal interactions

options :InteractionManagerOptions

The options of the interaction manager

selectMenu :SelectMenuInteractionManager|null

The interaction manager for button interactions

slash :SlashCommandInteractionManager|null

The interaction manager for slash commands

Methods

(async) deployAll() → {Promise.<(Boolean|DisGroupDevError)>}

Deploys all interactions

Returns:
Type: 
Promise.<(Boolean|DisGroupDevError)>

(async) loadAll() → {Promise.<(Boolean|DisGroupDevError)>}

Loads all interactions

Returns:
Type: 
Promise.<(Boolean|DisGroupDevError)>

(async) reloadAll() → {Promise.<(Boolean|DisGroupDevError)>}

Reloads all interactions

Returns:
Type: 
Promise.<(Boolean|DisGroupDevError)>

(async) unloadAll() → {Promise.<(Boolean|DisGroupDevError)>}

Unloads all interactions

Returns:
Type: 
Promise.<(Boolean|DisGroupDevError)>

Events

buttonInteractionLoad

Emitted when a button interaction is loaded.

Parameters:
NameTypeDescription
buttonInteractionButtonInteraction

The button interaction

buttonInteractionReload

Emitted when a button interaction is reloaded.

Parameters:
NameTypeDescription
buttonInteractionButtonInteraction

The button interaction

buttonInteractionUnload

Emitted when a button interaction is unloaded.

Parameters:
NameTypeDescription
nameString

The name of the button interaction

contextInteractionDeploy

Emitted when a context interaction is deployed.

Parameters:
NameTypeDescription
contextInteractionContextInteraction

The context interaction

contextInteractionDeploy

Emitted when a context interaction is deployed.

Parameters:
NameTypeDescription
contextInteractionContextInteraction

The context interaction

contextInteractionLoad

Emitted when a context interaction is loaded.

Parameters:
NameTypeDescription
contextInteractionContextInteraction

The context interaction

contextInteractionReload

Emitted when a context interaction is reloaded.

Parameters:
NameTypeDescription
contextInteractionContextInteraction

The context interaction

contextInteractionUnload

Emitted when a context interaction is unloaded.

Parameters:
NameTypeDescription
nameString

The name of the context interaction

modalInteractionLoad

Emitted when a modal interaction is loaded.

Parameters:
NameTypeDescription
modalInteractionModalInteraction

The modal interaction

modalInteractionReload

Emitted when a modal interaction is reloaded.

Parameters:
NameTypeDescription
modalInteractionModalInteraction

The modal interaction

modalInteractionUnload

Emitted when a modal interaction is unloaded.

Parameters:
NameTypeDescription
nameString

The name of the modal interaction

selectMenuInteractionLoad

Emitted when a select menu interaction is loaded.

Parameters:
NameTypeDescription
selectMenuInteractionSelectMenuInteraction

The select menu interaction

selectMenuInteractionReload

Emitted when a select menu interaction is reloaded.

Parameters:
NameTypeDescription
selectMenuInteractionSelectMenuInteraction

The select menu interaction

selectMenuInteractionUnload

Emitted when a select menu interaction is unloaded.

Parameters:
NameTypeDescription
nameString

The name of the select menu interaction

slashCommandDeploy

Emitted when a slash command is deployed.

Parameters:
NameTypeDescription
slashCommandSlashCommand

The slash command

slashCommandDeploy

Emitted when a slash command is deployed.

Parameters:
NameTypeDescription
slashCommandSlashCommand

The slash command

slashCommandLoad

Emitted when a slash command is loaded.

Parameters:
NameTypeDescription
slashCommandSlashCommand

The slash command

slashCommandReload

Emitted when a slash command is reloaded.

Parameters:
NameTypeDescription
slashCommandSlashCommand

The slash command

slashCommandUnload

Emitted when a slash command is unloaded.

Parameters:
NameTypeDescription
nameString

The name of the slash command