Class ExtensionMethods
- Namespace
- DSharpPlus.SlashCommands
- Assembly
- DSharpPlus.SlashCommands.dll
Defines various extension methods for slash commands.
public static class ExtensionMethods
- Inheritance
-
objectExtensionMethods
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.