Table of Contents

Class ChoiceProviderAttribute

Namespace
DisCatSharp.ApplicationCommands.Attributes
Assembly
DisCatSharp.ApplicationCommands.dll

Sets a IChoiceProvider for a command options. ChoiceProviders can be used to provide DiscordApplicationCommandOptionChoice from external sources such as a database.

[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = true)]
public class ChoiceProviderAttribute : Attribute
Inheritance
ChoiceProviderAttribute
Inherited Members

Constructors

ChoiceProviderAttribute(Type)

Adds a choice provider to this command.

Properties

ProviderType

The type of the provider.