Constructor
new InteractionManager(client, options)
The constructor of the interaction manager class.
Name | Type | Description |
---|---|---|
client | Client | The client |
options | InteractionManagerOptions | The options of the interaction manager |
Extends
- EventEmitter
Members
button :ButtonInteractionManager|null
The interaction manager for button interactions
- ButtonInteractionManager |
null
client :Client
The client
- Client
context :ContextInteractionManager|null
The interaction manager for context interactions
- ContextInteractionManager |
null
modal :ModalInteractionManager|null
The interaction manager for modal interactions
- ModalInteractionManager |
null
options :InteractionManagerOptions
The options of the interaction manager
selectMenu :SelectMenuInteractionManager|null
The interaction manager for button interactions
- SelectMenuInteractionManager |
null
slash :SlashCommandInteractionManager|null
The interaction manager for slash commands
Methods
(async) deployAll() → {Promise.<(Boolean|DisGroupDevError)>}
Deploys all interactions
- Type:
- Promise.
<(Boolean| DisGroupDevError)>
(async) loadAll() → {Promise.<(Boolean|DisGroupDevError)>}
Loads all interactions
- Type:
- Promise.
<(Boolean| DisGroupDevError)>
(async) reloadAll() → {Promise.<(Boolean|DisGroupDevError)>}
Reloads all interactions
- Type:
- Promise.
<(Boolean| DisGroupDevError)>
(async) unloadAll() → {Promise.<(Boolean|DisGroupDevError)>}
Unloads all interactions
- Type:
- Promise.
<(Boolean| DisGroupDevError)>
Events
buttonInteractionLoad
Emitted when a button interaction is loaded.
Name | Type | Description |
---|---|---|
buttonInteraction | ButtonInteraction | The button interaction |
buttonInteractionReload
Emitted when a button interaction is reloaded.
Name | Type | Description |
---|---|---|
buttonInteraction | ButtonInteraction | The button interaction |
buttonInteractionUnload
Emitted when a button interaction is unloaded.
Name | Type | Description |
---|---|---|
name | String | The name of the button interaction |
contextInteractionDeploy
Emitted when a context interaction is deployed.
Name | Type | Description |
---|---|---|
contextInteraction | ContextInteraction | The context interaction |
contextInteractionDeploy
Emitted when a context interaction is deployed.
Name | Type | Description |
---|---|---|
contextInteraction | ContextInteraction | The context interaction |
contextInteractionLoad
Emitted when a context interaction is loaded.
Name | Type | Description |
---|---|---|
contextInteraction | ContextInteraction | The context interaction |
contextInteractionReload
Emitted when a context interaction is reloaded.
Name | Type | Description |
---|---|---|
contextInteraction | ContextInteraction | The context interaction |
contextInteractionUnload
Emitted when a context interaction is unloaded.
Name | Type | Description |
---|---|---|
name | String | The name of the context interaction |
modalInteractionLoad
Emitted when a modal interaction is loaded.
Name | Type | Description |
---|---|---|
modalInteraction | ModalInteraction | The modal interaction |
modalInteractionReload
Emitted when a modal interaction is reloaded.
Name | Type | Description |
---|---|---|
modalInteraction | ModalInteraction | The modal interaction |
modalInteractionUnload
Emitted when a modal interaction is unloaded.
Name | Type | Description |
---|---|---|
name | String | The name of the modal interaction |
selectMenuInteractionLoad
Emitted when a select menu interaction is loaded.
Name | Type | Description |
---|---|---|
selectMenuInteraction | SelectMenuInteraction | The select menu interaction |
selectMenuInteractionReload
Emitted when a select menu interaction is reloaded.
Name | Type | Description |
---|---|---|
selectMenuInteraction | SelectMenuInteraction | The select menu interaction |
selectMenuInteractionUnload
Emitted when a select menu interaction is unloaded.
Name | Type | Description |
---|---|---|
name | String | The name of the select menu interaction |
slashCommandDeploy
Emitted when a slash command is deployed.
Name | Type | Description |
---|---|---|
slashCommand | SlashCommand | The slash command |
slashCommandDeploy
Emitted when a slash command is deployed.
Name | Type | Description |
---|---|---|
slashCommand | SlashCommand | The slash command |
slashCommandLoad
Emitted when a slash command is loaded.
Name | Type | Description |
---|---|---|
slashCommand | SlashCommand | The slash command |
slashCommandReload
Emitted when a slash command is reloaded.
Name | Type | Description |
---|---|---|
slashCommand | SlashCommand | The slash command |
slashCommandUnload
Emitted when a slash command is unloaded.
Name | Type | Description |
---|---|---|
name | String | The name of the slash command |