object InteractionsRegistrar
- Alphabetic
- By Inheritance
- InteractionsRegistrar
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- 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.
- 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.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- 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.
- 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.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])