Class ButtonComponent

java.lang.Object
io.github.kaktushose.jdac.dispatching.reply.Component<ButtonComponent, net.dv8tion.jda.api.components.buttons.Button, net.dv8tion.jda.api.components.buttons.Button, ButtonDefinition>
io.github.kaktushose.jdac.dispatching.reply.dynamic.ButtonComponent
All Implemented Interfaces:
net.dv8tion.jda.api.components.actionrow.ActionRowChildComponent, net.dv8tion.jda.api.components.actionrow.ActionRowChildComponentUnion, net.dv8tion.jda.api.components.Component, net.dv8tion.jda.api.components.IComponentUnion, net.dv8tion.jda.api.components.section.SectionAccessoryComponent, net.dv8tion.jda.api.components.section.SectionAccessoryComponentUnion

public final class ButtonComponent extends Component<ButtonComponent, net.dv8tion.jda.api.components.buttons.Button, net.dv8tion.jda.api.components.buttons.Button, ButtonDefinition> implements net.dv8tion.jda.api.components.section.SectionAccessoryComponentUnion
An implementation of Component specific to Button
  • Constructor Details

    • ButtonComponent

      public ButtonComponent(String method, @Nullable Class<?> origin, Entry[] placeholder)
  • Method Details

    • emoji

      public ButtonComponent emoji(@Nullable net.dv8tion.jda.api.entities.emoji.Emoji emoji)
      See Also:
      • Button.withEmoji(Emoji)
    • style

      public ButtonComponent style(net.dv8tion.jda.api.components.buttons.ButtonStyle style)
      See Also:
      • Button.withStyle(ButtonStyle)
    • label

      public ButtonComponent label(String label)
      See Also:
      • Button.withLabel(String)
    • url

      public ButtonComponent url(String url)
      See Also:
      • Button.withUrl(String)
    • definitionClass

      protected Class<ButtonDefinition> definitionClass()
      Specified by:
      definitionClass in class Component<ButtonComponent, net.dv8tion.jda.api.components.buttons.Button, net.dv8tion.jda.api.components.buttons.Button, ButtonDefinition>
    • build

      protected ButtonDefinition build(ButtonDefinition definition)
      Specified by:
      build in class Component<ButtonComponent, net.dv8tion.jda.api.components.buttons.Button, net.dv8tion.jda.api.components.buttons.Button, ButtonDefinition>
    • getType

      public net.dv8tion.jda.api.components.Component.Type getType()
      Specified by:
      getType in interface net.dv8tion.jda.api.components.Component
    • asThumbnail

      public net.dv8tion.jda.api.components.thumbnail.Thumbnail asThumbnail()
      Specified by:
      asThumbnail in interface net.dv8tion.jda.api.components.section.SectionAccessoryComponentUnion
    • withUniqueId

      public ButtonComponent withUniqueId(int uniqueId)
      Specified by:
      withUniqueId in interface net.dv8tion.jda.api.components.actionrow.ActionRowChildComponent
      Specified by:
      withUniqueId in interface net.dv8tion.jda.api.components.actionrow.ActionRowChildComponentUnion
      Specified by:
      withUniqueId in interface net.dv8tion.jda.api.components.Component
      Specified by:
      withUniqueId in interface net.dv8tion.jda.api.components.IComponentUnion
      Specified by:
      withUniqueId in interface net.dv8tion.jda.api.components.section.SectionAccessoryComponent
      Specified by:
      withUniqueId in interface net.dv8tion.jda.api.components.section.SectionAccessoryComponentUnion
      Overrides:
      withUniqueId in class Component<ButtonComponent, net.dv8tion.jda.api.components.buttons.Button, net.dv8tion.jda.api.components.buttons.Button, ButtonDefinition>