View Source Nostrum.Struct.Component.ActionRow (Nostrum v0.6.0)
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 discarded.
Puts the components into the action row unless a list of inner components already exists.
Link to this section Types
Specs
t() :: %Nostrum.Struct.Component{
components: [Nostrum.Struct.Component.components()],
custom_id: term(),
disabled: term(),
emoji: term(),
label: term(),
max_length: term(),
max_values: term(),
min_length: term(),
min_values: term(),
options: term(),
placeholder: term(),
required: term(),
style: term(),
type: Nostrum.Struct.Component.type(),
url: term(),
value: term()
}
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 or text input.
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 discarded.
Puts the components into the action row unless a list of inner components already exists.