Package discord4j.core.object.component
Class ActionRow
- java.lang.Object
-
- discord4j.core.object.component.MessageComponent
-
- discord4j.core.object.component.LayoutComponent
-
- discord4j.core.object.component.ActionRow
-
public class ActionRow extends LayoutComponent
A row ofaction components.- See Also:
- ActionRow
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class discord4j.core.object.component.MessageComponent
MessageComponent.Type
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ActionRowof(ActionComponent... components)Creates anActionRowwith the given components.static ActionRowof(List<? extends ActionComponent> components)Creates anActionRowwith the given components.-
Methods inherited from class discord4j.core.object.component.LayoutComponent
getChildren
-
Methods inherited from class discord4j.core.object.component.MessageComponent
fromData, getData, getType
-
-
-
-
Method Detail
-
of
public static ActionRow of(ActionComponent... components)
Creates anActionRowwith the given components.- Parameters:
components- The child components of the row.- Returns:
- An
ActionRowcontaining the given components.
-
of
public static ActionRow of(List<? extends ActionComponent> components)
Creates anActionRowwith the given components.- Parameters:
components- The child components of the row.- Returns:
- An
ActionRowcontaining the given components.
-
-