ActionRow
ClassOn this page
ActionRow is a DiscordLua class representing a Discord resource. Obtain it from a manager, an event payload, or the constructor when one is documented below.
Inheritance
- ActionRow
- Component
Inherited properties (31)
accentColor · inherited from Componentaccessory · inherited from ComponentchannelTypes · inherited from Componentclient · inherited from Componentcomponent · inherited from Componentcomponents · inherited from Componentcontent · inherited from ComponentcustomId · inherited from Componentdata · inherited from Componentdefault · inherited from Componentdescription · inherited from Componentdisabled · inherited from Componentdivider · inherited from Componentemoji · inherited from Componentfile · inherited from Componentid · inherited from Componentitems · inherited from Componentlabel · inherited from ComponentmaxValues · inherited from Componentmedia · inherited from ComponentminValues · inherited from Componentoptions · inherited from Componentplaceholder · inherited from Componentrequired · inherited from Componentspacing · inherited from Componentspoiler · inherited from Componentstyle · inherited from Componenttype · inherited from Componenturl · inherited from Componentvalue · inherited from Componentvalues · inherited from ComponentMethods
Performs from on this ActionRow. Call it from bot code when you need that operation on the current object.
Signature
ActionRow.from(data) Parameters
| Name | Type | Required | Behavior |
|---|---|---|---|
data |
any |
required | Passed through to the implementation as written. |
Returns
any.
Example
local discord = require("discord")
-- object is a ActionRow
ActionRow.from(data)Inherited methods (2)
Examples
Obtain this object from a manager, wrap helper, or event payload — it is not constructed directly in typical bot code.
Related APIs
Activity · ActivityInstance · ActivityLocation · AnonymousGuild · ApplicationCommand · ApplicationRoleConnectionMetadata · Attachment · AuthorizingIntegrationOwners
Version: discord 1.2.4 · runtime 1.0.0