Method UseSlashCommands
- Namespace
- DSharpPlus.SlashCommands
- Assembly
- DSharpPlus.SlashCommands.dll
UseSlashCommands(DiscordClientBuilder, Action<SlashCommandsExtension>)
Adds the slash commands extension to the provided DiscordClientBuilder.
[Obsolete("DSharpPlus.SlashCommands is obsolete. Please consider using the new DSharpPlus.Commands extension instead.")]
public static DiscordClientBuilder UseSlashCommands(this DiscordClientBuilder builder, Action<SlashCommandsExtension> setup)Parameters
- builderDiscordClientBuilder
- The client builder to register with. 
- setupAction<SlashCommandsExtension>
- Any setup code you want to run on the extension, such as registering commands. 
Returns
- DiscordClientBuilder
- The same client builder for chaining.