Skip to content

ComponentsContainer

github-actions[bot] edited this page Dec 13, 2024 · 1 revision

A container class constructed by the library to store components data for action row validation and caching purposes.

Instances of this class should not be constructed by users.

Methods

raw()

Returns a table of the raw components data the Discord API expects. User should never need to use this method. You are likely doing something wrong if you are using it directly.

Returns: table


removeAllComponents()

Removes all components attached to this instance and reset its cache.

Returns self.

Returns: Components


Clone this wiki locally