Interface Component
-
- All Superinterfaces:
SerializableData
- All Known Subinterfaces:
Button
public interface Component extends SerializableData
Component of a Message.
These are used to extend messages with interactive elements such as buttons or dropdown menus.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Component.Type
The component types
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getId()
The component ID or null.Component.Type
getType()
The type of component.-
Methods inherited from interface net.dv8tion.jda.api.utils.data.SerializableData
toData
-
-
-
-
Method Detail
-
getType
@Nonnull Component.Type getType()
The type of component.- Returns:
Component.Type
-
-