Carbon
CoreClasses

ComponentHandler

Extends

  • Base

Constructors

new ComponentHandler()

new ComponentHandler(client): ComponentHandler

Parameters

ParameterType
clientClient

Returns

ComponentHandler

Inherited from

Base.constructor

Properties

PropertyTypeDefault valueInherited from
clientClientundefinedBase.client
componentsBaseComponent[][]-

Methods

handleInteraction()

handleInteraction(data): Promise<undefined | false>

Internal

Handle an interaction

Parameters

ParameterType
dataAPIMessageComponentInteraction

Returns

Promise<undefined | false>


registerComponent()

registerComponent(component): void

Internal

Register a component with the handler

Parameters

ParameterType
componentBaseComponent

Returns

void

On this page

Edit on GitHub