Namespace DisCatSharp.ApplicationCommands.Attributes
Classes
- ApplicationCommandCheckBaseAttribute
The base class for a pre-execution check for a application command.
- ApplicationCommandModuleLifespanAttribute
Defines this application command module's lifespan. Module lifespans are transient by default.
- ApplicationCommandRequireBotPermissionsAttribute
Defines that usage of this application command is only possible when the bot is granted a specific permission.
- ApplicationCommandRequireDirectMessageAttribute
Defines that this application command is only usable within a direct message channel.
- ApplicationCommandRequireGuildAttribute
Defines that this application command is only usable within a guild.
- ApplicationCommandRequireGuildOwnerAttributeAttribute
Defines that this application command is only usable within a guild by its owner.
- ApplicationCommandRequireNsfwAttribute
Defines that this application command is only usable within a guild.
- ApplicationCommandRequirePermissionsAttribute
Defines that usage of this application command is restricted to members with specified permissions. This check also verifies that the bot has the same permissions.
- ApplicationCommandRequirePremiumAttribute
Defines that usage of this application command is restricted to users with a specified entitlement.
- ApplicationCommandRequireTeamAdminAttribute
Defines that this application command is restricted to team members of the bot with admin role or higher.
- ApplicationCommandRequireTeamDeveloperAttribute
Defines that this application command is restricted to team members of the bot with developer role or higher.
- ApplicationCommandRequireTeamMemberAttribute
Defines that this application command is restricted to the team members of the bot.
- ApplicationCommandRequireTeamOwnerAttribute
Defines that this application command is restricted to team members of the bot with owner role.
- ApplicationCommandRequireTeamReadOnlyAttribute
Defines that this application command is restricted to team members of the bot with read-only role or higher.
- ApplicationCommandRequireUserPermissionsAttribute
Defines that usage of this application command is restricted to members with specified permissions.
- AutocompleteAttribute
The autocomplete attribute.
- 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
Represents a DiscordApplicationCommand with the type of User or Message.
- ContextMenuCooldownAttribute
Defines a cooldown for this command. This allows you to define how many times can users execute a specific command
- DontInjectAttribute
Prevents this field or property from having its value injected by dependency injection.
- MaximumLengthAttribute
Sets a maximum value for this slash command option. Only valid for string parameters.
- MaximumValueAttribute
Sets a maximum value for this slash command option. Only valid for int, long or double parameters.
- MinimumLengthAttribute
Sets a minimum value for this slash command option. Only valid for string parameters.
- MinimumValueAttribute
Sets a minimum value for this slash command option. Only valid for int, long or double parameters.
- OptionAttribute
Marks this parameter as an option for a slash command
- RequireAnyPermissionsAttribute
Defines that usage of this application command is restricted to members with any of the specified permissions. This check also verifies that the bot has the same permissions.
- SlashCommandAttribute
Represents a DiscordApplicationCommand.
- SlashCommandCooldownAttribute
Defines a cooldown for this command. This allows you to define how many times can users execute a specific command.
- SlashCommandGroupAttribute
Represents a DiscordApplicationCommand group.
Interfaces
- IAutocompleteProvider
The autocomplete provider.
- IChoiceProvider
All choice providers must inherit from this interface