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. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.