Namespace DSharpPlus.SlashCommands
Classes
- ApplicationCommandModule
Represents a base class for slash command modules.
- AutocompleteAttribute
Handles autocomplete choices for a slash command parameter.
- AutocompleteContext
Represents a context for an autocomplete interaction.
- BaseContext
Represents a base context for application command contexts.
- ChannelTypesAttribute
Defines allowed channel types for a channel parameter.
- ChoiceAttribute
Adds a choice for this slash command option.
- ChoiceNameAttribute
Sets the name for this enum choice.
- ChoiceProvider
Implementation of IChoiceProvider with access to service collection.
- ChoiceProviderAttribute
Sets a IChoiceProvider for a command options. ChoiceProviders can be used to provide DiscordApplicationCommandOptionChoice from external sources such as a database.
- ContextMenuAttribute
Marks this method as a context menu.
- ContextMenuCheckBaseAttribute
The base class for a pre-execution check for a context menu.
- ContextMenuContext
Represents a context for a context menu.
- ContextMenuExecutionChecksFailedException
Thrown when a pre-execution check for a slash command fails.
- DescriptionLocalizationAttribute
Specifies a locale for a slash command description. The longest description is the one that counts toward character limits.
- DontInjectAttribute
Prevents this field or property from having its value injected by dependency injection.
- ExtensionMethods
Defines various extension methods for slash commands.
- GuildOnlyAttribute
Indicates that a global application command cannot be invoked in DMs.
- InteractionCommandAllowedContextsAttribute
Specifies the allowed interaction contexts for a command.
- InteractionCommandInstallTypeAttribute
Specifies the installation context for a command or module.
- InteractionContext
Represents a context for an interaction.
- LocaleHelper
A helper class that provides a list of supported localizations.
- MaximumAttribute
Sets a maximum value for this slash command option. Only valid for long or double parameters.
- MaximumLengthAttribute
Sets a maximum allowed length for this slash command option. Only valid for string parameters.
- MinimumAttribute
Sets a minimum value for this slash command option. Only valid for long or double parameters.
- MinimumLengthAttribute
Sets a minimum allowed length for this slash command option. Only valid for string parameters.
- NameLocalizationAttribute
Specifies a locale for a slash command name. The longest name is the name that counts toward character limits.
- OptionAttribute
Marks this parameter as an option for a slash command.
- SlashCheckBaseAttribute
The base class for a pre-execution check for a slash command.
- SlashCommandAttribute
Marks this method as a slash command.
- SlashCommandGroupAttribute
Marks this class a slash command group.
- SlashCommandsExtension
A class that handles slash commands for a client.
- SlashExecutionChecksFailedException
Thrown when a pre-execution check for a slash command fails.
- SlashModuleLifespanAttribute
Defines this slash command module's lifespan. Module lifespans are transient by default.
Interfaces
- IAutocompleteProvider
All autocomplete providers must inherit from this interface.
- IChoiceProvider
All choice providers must inherit from this interface.
Enums
- Localization
Supported locals for slash command localizations.
- SlashModuleLifespan
Represents a slash command module lifespan.