ComponentsContainer - Bilal2453/discordia-components GitHub Wiki

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