c

ackcord.interactions.components

RegisteredComponents

class RegisteredComponents extends AnyRef

A class keeping track of all the active components and the handlers for their interactions. By default, the global GlobalRegisteredComponents is used, but you can also make and use your own.

Source
RegisteredComponents.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RegisteredComponents
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RegisteredComponents()

Value Members

  1. def addHandler(identifier: String, handler: ComponentHandler[_, _]): Unit

    Adds a new component handler.

    Adds a new component handler.

    identifier

    The identifier to associate with the handler.

    handler

    The handler.

  2. def handlerForIdentifier(identifier: String): Option[ComponentHandler[_, _]]

    Try to get the handler for a given identifier.

  3. def removeHandler(handler: ComponentHandler[_, _]): Unit

    Remove all handling of the specified handler.

    Remove all handling of the specified handler.

    handler

    The handler to completely unregister.

  4. def removeHandler(identifier: String): Unit

    Remove the handler associated with an identifier.

    Remove the handler associated with an identifier.

    identifier

    The identifier to remove the handler for.