o

ackcord.interactions

InteractionsRegistrar

object InteractionsRegistrar

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

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. def createGlobalCommands(applicationId: ApplicationId, requests: requests.Requests, replaceAll: Boolean, commands: CreatedApplicationCommand*): Future[Seq[ApplicationCommand]]

    Create or overwrite global application commands.

    Create or overwrite global application commands.

    applicationId

    The id of the application to handle the commands for.

    requests

    An requests instance.

    replaceAll

    If all existing commands should be removed in favor of these new ones.

    commands

    The commands to add or replace.

    returns

    The created commands.

  7. def createGuildCommands(applicationId: ApplicationId, guildId: GuildId, requests: requests.Requests, replaceAll: Boolean, commands: CreatedApplicationCommand*): Future[Seq[ApplicationCommand]]

    Create or overwrite guild application commands.

    Create or overwrite guild application commands.

    applicationId

    The id of the application to handle the commands for.

    guildId

    The guild to add or replace the guild application commands for.

    requests

    An requests instance.

    replaceAll

    If all existing commands should be removed in favor of these new ones.

    commands

    The commands to add or replace.

    returns

    The created commands.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def gatewayInteractions(commands: CreatedApplicationCommand*)(clientId: String, requests: requests.Requests, registeredComponents: RegisteredComponents = GlobalRegisteredComponents, parallelism: Int = 4): Sink[(RawInteraction, Option[CacheSnapshot]), NotUsed]

    Wire up the gateway to interaction handling.

    Wire up the gateway to interaction handling.

    commands

    The application commands to handle.

    clientId

    The client id.

    requests

    An requests instance.

    registeredComponents

    Where to check for component interaction handlers. Defaults to the global one.

  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. def removeUnknownGlobalCommands(applicationId: ApplicationId, requests: requests.Requests, commands: CreatedApplicationCommand*): Future[Seq[ApplicationCommand]]

    Given a bunch of application commands, removes registered global application commands with names not matching the names found in the passed in commands.

    Given a bunch of application commands, removes registered global application commands with names not matching the names found in the passed in commands.

    applicationId

    The id of the application to handle the commands for.

    requests

    An requests instance.

    commands

    The commands to validate against.

    returns

    The removed commands.

  18. def removeUnknownGuildCommands(applicationId: ApplicationId, guildId: GuildId, requests: requests.Requests, commands: CreatedApplicationCommand*): Future[Seq[ApplicationCommand]]

    Given a bunch of application commands, removes registered guild application commands with names not matching the names found in the passed in commands.

    Given a bunch of application commands, removes registered guild application commands with names not matching the names found in the passed in commands.

    applicationId

    The id of the application to handle the commands for.

    guildId

    The guild to remove the guild application commands from.

    requests

    An requests instance.

    commands

    The commands to validate against.

    returns

    The removed commands.

  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. 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 AnyRef

Inherited from Any

Ungrouped