CoreClasses
ComponentHandler
Extends
Base
Constructors
new ComponentHandler()
new ComponentHandler(
client
):ComponentHandler
Parameters
Parameter | Type |
---|---|
client | Client |
Returns
Inherited from
Base.constructor
Properties
Property | Type | Default value | Inherited from |
---|---|---|---|
client | Client | undefined | Base.client |
components | BaseComponent [] | [] | - |
Methods
handleInteraction()
handleInteraction(
data
):Promise
<undefined
|false
>
Internal
Handle an interaction
Parameters
Parameter | Type |
---|---|
data | APIMessageComponentInteraction |
Returns
Promise
<undefined
| false
>
registerComponent()
registerComponent(
component
):void
Internal
Register a component with the handler
Parameters
Parameter | Type |
---|---|
component | BaseComponent |
Returns
void