ContainerComponent
ClassOn this page
ContainerComponent 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
- ContainerComponent
- 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
ContainerComponent:hexAccentColor()
#Performs hex accent color on this ContainerComponent. Call it from bot code when you need that operation on the current object.
Signature
ContainerComponent:hexAccentColor() Parameters
No parameters.
Returns
any.
Example
local discord = require("discord")
-- object is a ContainerComponent
object:hexAccentColor()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
ActionRow · Activity · ActivityInstance · ActivityLocation · AnonymousGuild · ApplicationCommand · ApplicationRoleConnectionMetadata · Attachment
Version: discord 1.2.4 · runtime 1.0.0