Table of Contents

Class ChoiceProvider

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

Implementation of IChoiceProvider with access to service collection.

public abstract class ChoiceProvider : IChoiceProvider
Inheritance
ChoiceProvider
Implements
Inherited Members

Properties

GuildId

The optional ID of the Guild the command got registered for.

Services

Gets or sets the service provider. This property is injected by the framework during command registration and will be available when Provider() is called.

Throws InvalidOperationException if accessed before the framework has injected it.

Methods

Provider()

Sets the choices for the slash command.