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