abstract class AutoButtonHandler[Interaction <: ComponentInteraction] extends MultiAutoButtonHandler[Interaction]

An MultiAutoButtonHandler supporting only a single identifier.

Source
AutoButtonHandler.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AutoButtonHandler
  2. MultiAutoButtonHandler
  3. ButtonHandler
  4. ComponentHandler
  5. InteractionHandlerOps
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AutoButtonHandler(identifier: String, requests: requests.Requests, interactionTransformer: InteractionTransformer[ComponentInteraction, Interaction] = InteractionTransformer.identity[ComponentInteraction], registeredComponents: RegisteredComponents = GlobalRegisteredComponents)

    identifier

    The identifier of the button this handler handles.

    interactionTransformer

    A transformer to do base processing of the interaction before handling it.

    registeredComponents

    Where to register this handler to.

Abstract Value Members

  1. abstract def handle(implicit interaction: Interaction): InteractionResponse

    Handle the interaction here.

    Handle the interaction here.

    interaction

    The interaction to handle.

    returns

    A response to the interaction.

    Definition Classes
    ComponentHandler

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def acknowledgeLoading: InteractionResponse

    A response with a promise that you'll handle the interaction later.

    A response with a promise that you'll handle the interaction later. You are yourself responsible for fulfilling that promise.

    Definition Classes
    ComponentHandler
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def async(handle: (AsyncToken) => OptFuture[_])(implicit interaction: Interaction): InteractionResponse

    Specify that the response to this interaction will be done async.

    Specify that the response to this interaction will be done async.

    handle

    The action to do async.

    Definition Classes
    InteractionHandlerOps
  7. def asyncLoading(handle: (AsyncToken) => OptFuture[_])(implicit interaction: Interaction): InteractionResponse

    Respond with a promise that you'll handle the interaction later.

    Respond with a promise that you'll handle the interaction later. Stops showing the loading icon.

    handle

    The handler for later.

    Definition Classes
    ComponentHandler
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  9. def deleteOriginalMessage(implicit async: AsyncMessageToken): OptFuture[NotUsed]

    Delete the original message sent as a response to the interaction.

    Delete the original message sent as a response to the interaction.

    Definition Classes
    InteractionHandlerOps
  10. def editOriginalMessage(content: util.JsonOption[String] = JsonUndefined, embeds: util.JsonOption[Seq[OutgoingEmbed]] = JsonUndefined, files: util.JsonOption[Seq[CreateMessageFile]] = JsonUndefined, allowedMentions: util.JsonOption[AllowedMention] = JsonUndefined, components: util.JsonOption[Seq[ActionRow]] = JsonUndefined)(implicit async: AsyncMessageToken): OptFuture[Json]

    Edits the original message sent as a response to the interaction.

    Edits the original message sent as a response to the interaction.

    content

    The content of the message.

    embeds

    The embeds of the message.

    files

    The files of the message.

    allowedMentions

    The allowed mentions of the message.

    components

    The components of the message.

    Definition Classes
    InteractionHandlerOps
  11. def editPreviousMessage(messageId: MessageId, content: util.JsonOption[String] = JsonUndefined, embeds: util.JsonOption[Seq[OutgoingEmbed]] = JsonUndefined, files: util.JsonOption[Seq[CreateMessageFile]] = JsonUndefined, allowedMentions: util.JsonOption[AllowedMention] = JsonUndefined, components: util.JsonOption[Seq[ActionRow]] = JsonUndefined)(implicit async: AsyncToken): OptFuture[Json]

    Edits a previous message sent as a part of the interaction.

    Edits a previous message sent as a part of the interaction.

    messageId

    The message to edit.

    content

    The content of the message.

    embeds

    The embeds of the message.

    files

    The files of the message.

    allowedMentions

    The allowed mentions of the message.

    components

    The components of the message.

    Definition Classes
    InteractionHandlerOps
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. implicit def executionContext: ExecutionContext
    Definition Classes
    InteractionHandlerOps
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  16. def getOriginalMessage()(implicit async: AsyncMessageToken): OptFuture[Message]

    Get the original message sent as a response to the interaction.

    Get the original message sent as a response to the interaction.

    Definition Classes
    InteractionHandlerOps
  17. def getPreviousMessage(messageId: MessageId)(implicit async: AsyncMessageToken): OptFuture[Message]

    Get a previous message sent as a part of the interaction.

    Get a previous message sent as a part of the interaction.

    messageId

    The message to get.

    Definition Classes
    InteractionHandlerOps
  18. def handleRaw(clientId: String, interaction: RawInteraction, customId: String, cacheSnapshot: Option[CacheSnapshot]): Option[InteractionResponse]
    Definition Classes
    ComponentHandler
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def makeBaseInteraction(invocationInfo: InteractionInvocationInfo, message: Message, interaction: RawInteraction, customId: String, cacheSnapshot: Option[CacheSnapshot]): ComponentInteraction
    Attributes
    protected
    Definition Classes
    ButtonHandlerComponentHandler
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  25. val requests: requests.Requests
  26. def sendAsyncEmbed(embeds: Seq[OutgoingEmbed], content: String = "", tts: Option[Boolean] = None, files: Seq[CreateMessageFile] = Seq.empty, allowedMentions: Option[AllowedMention] = None, components: Seq[ActionRow] = Nil)(implicit async: AsyncToken): OptFuture[RawMessage]

    Send an async message as part of the interaction with embeds as the primary thing.

    Send an async message as part of the interaction with embeds as the primary thing.

    embeds

    The embeds of the message.

    content

    The content of the message.

    tts

    If the message will be tts.

    files

    The files to send with the message.

    allowedMentions

    The allowed mentions of the message.

    components

    The components of the message.

    Definition Classes
    InteractionHandlerOps
  27. def sendAsyncMessage(content: String, tts: Option[Boolean] = None, files: Seq[CreateMessageFile] = Seq.empty, embeds: Seq[OutgoingEmbed] = Nil, allowedMentions: Option[AllowedMention] = None, components: Seq[ActionRow] = Nil)(implicit async: AsyncToken): OptFuture[RawMessage]

    Send an async message as part of the interaction with text content as the primary thing.

    Send an async message as part of the interaction with text content as the primary thing.

    content

    The content of the message.

    tts

    If the message will be tts.

    files

    The files to send with the message.

    embeds

    The embeds of the message.

    allowedMentions

    The allowed mentions of the message.

    components

    The components of the message.

    Definition Classes
    InteractionHandlerOps
  28. def sendEmbed(embeds: Seq[OutgoingEmbed], content: Option[String] = None, tts: Option[Boolean] = None, allowedMentions: Option[AllowedMention] = None, flags: MessageFlags = MessageFlags.None, components: Seq[ActionRow] = Nil, attachments: Option[Seq[PartialAttachment]] = None): AsyncMessageable

    Send a message as response to the interaction with embeds as the primary thing.

    Send a message as response to the interaction with embeds as the primary thing.

    embeds

    The embeds of the message.

    content

    The content of the message.

    tts

    If the message will be tts.

    allowedMentions

    The allowed mentions of the message.

    flags

    The flags of the message.

    components

    The components of the message. // * @param attachments The attachments of the message. Not currently implemented.

    Definition Classes
    InteractionHandlerOps
  29. def sendMessage(content: String, tts: Option[Boolean] = None, embeds: Seq[OutgoingEmbed] = Nil, allowedMentions: Option[AllowedMention] = None, flags: MessageFlags = MessageFlags.None, components: Seq[ActionRow] = Nil): AsyncMessageable

    Send a message as response to the interaction with text content as the primary thing.

    Send a message as response to the interaction with text content as the primary thing.

    content

    The content of the message.

    tts

    If the message will be tts.

    embeds

    The embeds of the message.

    allowedMentions

    The allowed mentions of the message.

    flags

    The flags of the message.

    components

    The components of the message. // * @param attachments The attachments of the message. Not currently implemented.

    Definition Classes
    InteractionHandlerOps
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. def unregisterMenuHandler(): Unit

    Unregister this handler.

    Unregister this handler.

    Definition Classes
    MultiAutoButtonHandler
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from MultiAutoButtonHandler[Interaction]

Inherited from ButtonHandler[Interaction]

Inherited from ComponentHandler[ComponentInteraction, Interaction]

Inherited from InteractionHandlerOps

Inherited from AnyRef

Inherited from Any

Ungrouped