ContextInteractionManager

The context interaction manager.

Constructor

new ContextInteractionManager(client, interactionManager)

The constructor of the context interaction manager class.

Parameters:
NameTypeDescription
clientClient

The client

interactionManagerInteractionManager

The interaction manager

Members

cache :Collection.<String, ContextInteraction>

The cache with all context interactions

Type:

client :Client

The client

Type:
  • Client

manager :InteractionManager

The interaction manager

Methods

deploy(contextInteraction) → {Promise.<(Boolean|DisGroupDevError)>}

Deploys one specific context interaction

Parameters:
NameTypeDescription
contextInteractionContextInteraction

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:
NameTypeDescription
pathString

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:
NameTypeDescription
nameString

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:
NameTypeDescription
nameString

The name of the context interaction

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

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

Unloads all context interactions

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