o

ackcord.interactions.components

GlobalRegisteredComponents

object GlobalRegisteredComponents extends RegisteredComponents

The global RegisteredComponents used by default.

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

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.

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

    Try to get the handler for a given identifier.

    Try to get the handler for a given identifier.

    Definition Classes
    RegisteredComponents
  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.

    Definition Classes
    RegisteredComponents
  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.

    Definition Classes
    RegisteredComponents