object InteractionsRegistrar
- Alphabetic
- By Inheritance
- InteractionsRegistrar
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- 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.
- 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.
- 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.