Nostrum.Struct.Component.ActionRow (Nostrum v0.5.0-rc1) View Source
Action Rows.
Link to this section Summary
Functions
Create an empty action row.
Appends a button to the action row.
Lazily appends a button to the action row.
Puts the given component into the action row, any existing components are disgarded.
Puts the components into the action row unless a list of inner components already exists.
Link to this section Types
Specs
t() :: %{ type: Nostrum.Struct.Component.type(), components: [Nostrum.Struct.Component.components()] }
Link to this section Functions
Create an empty action row.
Options can be passed as a keyword list. The only supported option is a list of inner components
Appends a button to the action row.
Returns the action row unchanged if there are already 5 buttons or if the action row contains a select menu.
Lazily appends a button to the action row.
If there are already 5 buttons, the first one will be dropped.
Puts the given component into the action row, any existing components are disgarded.
Puts the components into the action row unless a list of inner components already exists.