Search Results for

    Show / Hide Table of Contents

    Class ChoiceProvider

    Implementation of IChoiceProvider with access to service collection.

    Inheritance
    System.Object
    ChoiceProvider
    Implements
    IChoiceProvider
    Namespace: DisCatSharp.ApplicationCommands
    Assembly: DisCatSharp.ApplicationCommands.dll
    Syntax
    public abstract class ChoiceProvider : IChoiceProvider

    Properties

    | Improve this Doc View Source

    GuildId

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

    Declaration
    public ulong? GuildId { get; set; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>
    | Improve this Doc View Source

    Services

    Sets the service provider.

    Declaration
    public IServiceProvider Services { get; set; }
    Property Value
    Type Description
    System.IServiceProvider

    Methods

    | Improve this Doc View Source

    Provider()

    Sets the choices for the slash command.

    Declaration
    public abstract Task<IEnumerable<DiscordApplicationCommandOptionChoice>> Provider()
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<DiscordApplicationCommandOptionChoice>>

    Implements

    IChoiceProvider

    Extension Methods

    ReflectionUtilities.ToDictionary<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2021-2022 Aiko IT Systems