Search Results for

    Show / Hide Table of Contents

    Delegate ExecuteCallback

    Represents a cached method execution delegate.

    Namespace: Discord.Interactions
    Assembly: Discord.Net.Interactions.dll
    Syntax
    public delegate Task ExecuteCallback(IInteractionContext context, object[] args, IServiceProvider serviceProvider, ICommandInfo commandInfo);
    Parameters
    Type Name Description
    IInteractionContext context

    Execution context that will be injected into the module class.

    Object[] args

    Method arguments array.

    IServiceProvider serviceProvider

    Service collection for initializing the module.

    ICommandInfo commandInfo

    Command info class of the executed method.

    Returns
    Type Description
    Task

    A task representing the execution operation.

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2023 3.12.0