classes
TemplateComponent
Wapi.js Docs / TemplateComponent
Class: TemplateComponent
Represents a component of a template message.
Constructors
new TemplateComponent()
new TemplateComponent(
params
):TemplateComponent
Parameters
• params: object
| object
| object
The component data.
Returns
Source
packages/wapi.js/src/structures/template/index.ts:55
Properties
componentData
componentData:
object
|object
|object
Source
packages/wapi.js/src/structures/template/index.ts:36
Methods
addParameters()
addParameters(
parameter
):void
Adds a parameter to the component.
Parameters
• parameter: TemplateParameter
The parameter to add.
Returns
void
Source
Was this page helpful?