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.
    See Also:
    Button, ActionRow
    • Method Detail

      • getId

        @Nullable
        String getId()
        The component ID or null.
        Some components such as link buttons don't have this.

        This need not be a numeric ID! All these component IDs are custom and not generated by Discord.

        Returns:
        The component ID or null if not present