Class ExtensionMethods
- Namespace
- DSharpPlus.SlashCommands
- Assembly
- DSharpPlus.SlashCommands.dll
Defines various extension methods for slash commands.
public static class ExtensionMethods- Inheritance
- 
      
      ExtensionMethods
Methods
- AddSlashCommandsExtension(IServiceCollection, Action<SlashCommandsExtension>)
- Adds the slash commands extension to the provided service collection. 
- GetName<T>(T)
- Gets the name from the ChoiceNameAttribute for this enum value. 
- UseSlashCommands(DiscordClientBuilder, Action<SlashCommandsExtension>)
- Adds the slash commands extension to the provided DiscordClientBuilder.