Interface HighLevelComponent
-
- All Superinterfaces:
Component,Specializable<HighLevelComponent>
- All Known Subinterfaces:
ActionRow
public interface HighLevelComponent extends Component, Specializable<HighLevelComponent>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<ActionRow>asActionRow()Gets the component as an ActionRow if it's of that type.default booleanisActionRow()Whether this component is of this type.-
Methods inherited from interface org.javacord.api.util.Specializable
as
-
-
-
-
Method Detail
-
isActionRow
default boolean isActionRow()
Whether this component is of this type.- Returns:
- True if it's of that type.
-
asActionRow
default java.util.Optional<ActionRow> asActionRow()
Gets the component as an ActionRow if it's of that type.- Returns:
- The ActionRow.
-
-