API reference
Method UseApplicationCommands
- Namespace
- DisCatSharp.ApplicationCommands
- Assembly
- DisCatSharp.ApplicationCommands.dll
UseApplicationCommands(DiscordClient, ApplicationCommandsConfiguration?)
Enables application commands on this DiscordClient. Registration is started from the gateway ready lifecycle and is not triggered by HTTP ingress alone.
public static ApplicationCommandsExtension UseApplicationCommands(this DiscordClient client, ApplicationCommandsConfiguration? config = null)
Parameters
clientDiscordClientClient to enable application commands for.
configApplicationCommandsConfigurationConfiguration to use.