Interface ActionRowBuilderDelegate
-
- All Superinterfaces:
ComponentBuilderDelegate
public interface ActionRowBuilderDelegate extends ComponentBuilderDelegate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddComponents(java.util.List<LowLevelComponent> components)Add multiple low-level components to the ActionRow.ActionRowbuild()Creates anActionRowinstance with the given values.voidcopy(ActionRow actionRow)Copy an action row's values into the builder.java.util.List<LowLevelComponent>getComponents()Get current low-level components.ComponentTypegetType()Get the component's type (alwaysComponentType.ACTION_ROW).voidremoveComponent(int index)Remove a low-level component from the ActionRow.voidremoveComponent(java.lang.String customId)Remove a low-level component from the ActionRow.voidremoveComponent(LowLevelComponent component)Remove a low-level component from the ActionRow.
-
-
-
Method Detail
-
addComponents
void addComponents(java.util.List<LowLevelComponent> components)
Add multiple low-level components to the ActionRow.- Parameters:
components- A list containing low-level components.
-
copy
void copy(ActionRow actionRow)
Copy an action row's values into the builder.- Parameters:
actionRow- The action row to copy.
-
removeComponent
void removeComponent(LowLevelComponent component)
Remove a low-level component from the ActionRow.- Parameters:
component- The low-level component being removed.
-
removeComponent
void removeComponent(int index)
Remove a low-level component from the ActionRow.- Parameters:
index- The index placement to remove.
-
removeComponent
void removeComponent(java.lang.String customId)
Remove a low-level component from the ActionRow.- Parameters:
customId- The low-level component's identifier.
-
getComponents
java.util.List<LowLevelComponent> getComponents()
Get current low-level components.- Returns:
- The current low-level components.
-
build
ActionRow build()
Creates anActionRowinstance with the given values.- Returns:
- The created action row instance.
-
getType
ComponentType getType()
Get the component's type (alwaysComponentType.ACTION_ROW).- Returns:
- The component's type.
-
-