Search Results for

    Show / Hide Table of Contents

    Class SlashCommandModule

    The base that should be used for all slash command modules.

    Inheritance
    System.Object
    InteractionModuleBase
    SlashCommandModule
    Implements
    ISlashCommandModule
    Inherited Members
    InteractionModuleBase.FromSuccess(IDiscordInteractionResponse)
    InteractionModuleBase.FromSuccess(String, Boolean)
    InteractionModuleBase.FromSuccess(IDiscordEmbed, Boolean)
    InteractionModuleBase.FromError(ErrorResult)
    InteractionModuleBase.FromError(String)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Color_Chan.Discord.Commands.Modules
    Assembly: Color-Chan.Discord.Commands.dll
    Syntax
    public class SlashCommandModule : InteractionModuleBase, ISlashCommandModule

    Properties

    | Improve this Doc View Source

    Context

    The current context the slash command.

    Declaration
    protected ISlashCommandContext Context { get; set; }
    Property Value
    Type Description
    ISlashCommandContext

    Methods

    | Improve this Doc View Source

    SetContext(ISlashCommandContext)

    Set the current ISlashCommandContext for a command.

    Declaration
    public void SetContext(ISlashCommandContext context)
    Parameters
    Type Name Description
    ISlashCommandContext context

    The new ISlashCommandContext.

    Exceptions
    Type Condition
    System.ArgumentNullException

    When the given context was null.

    Implements

    ISlashCommandModule
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX