ButtonInteractionManager

The button interaction manager.

Constructor

new ButtonInteractionManager()

Members

cache :Collection.<String, ButtonInteraction>

The cache with all button interactions

Type:

client :Client

The client

Type:
  • Client

manager :InteractionManager

The interaction manager

Methods

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

Loads one specific button interaction

Parameters:
NameTypeDescription
pathString

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

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

The name of the button interaction

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

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

Unloads all button interactions

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