Constructor
new ModalInteractionManager(client, interactionManager)
The constructor of the modal interaction manager class.
Parameters:
Name | Type | Description |
---|---|---|
client | Client | The client |
interactionManager | InteractionManager | The interaction manager |
Members
cache :Collection.<String, ModalInteraction>
The cache with all modal interactions
Type:
- Collection.
<String, ModalInteraction>
client :Client
The client
Type:
- Client
manager :InteractionManager
The interaction manager
Type:
Methods
load(path) → {Promise.<(Boolean|DisGroupDevError)>}
Loads one specific modal interaction
Parameters:
Name | Type | Description |
---|---|---|
path | String | The path to the modal interaction |
Returns:
- Type:
- Promise.
<(Boolean| DisGroupDevError)>
loadAll() → {Promise.<(Boolean|DisGroupDevError)>}
Loads all modal interactions
Returns:
- Type:
- Promise.
<(Boolean| DisGroupDevError)>
reload(name) → {Promise.<(Boolean|DisGroupDevError)>}
Reloads one specific modal interaction
Parameters:
Name | Type | Description |
---|---|---|
name | String | The name of the modal interaction |
Returns:
- Type:
- Promise.
<(Boolean| DisGroupDevError)>
reloadAll() → {Promise.<(Boolean|DisGroupDevError)>}
Reloads all modal interactions
Returns:
- Type:
- Promise.
<(Boolean| DisGroupDevError)>
unload(name) → {Promise.<(Boolean|DisGroupDevError)>}
Unloads one specific modal interaction
Parameters:
Name | Type | Description |
---|---|---|
name | String | The name of the modal interaction |
Returns:
- Type:
- Promise.
<(Boolean| DisGroupDevError)>
unloadAll() → {Promise.<(Boolean|DisGroupDevError)>}
Unloads all modal interactions
Returns:
- Type:
- Promise.
<(Boolean| DisGroupDevError)>