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