Search Results for

    Show / Hide Table of Contents

    Delegate RestResponseCallback

    Represents a cached delegate for creating interaction responses to webhook based Discord Interactions.

    Namespace: Discord.Interactions
    Assembly: Discord.Net.Interactions.dll
    Syntax
    public delegate Task RestResponseCallback(IInteractionContext context, string responseBody);
    Parameters
    Type Name Description
    IInteractionContext context

    Execution context that will be injected into the module class.

    String responseBody

    Body of the interaction response.

    Returns
    Type Description
    Task

    A task representing the response operation.

    Theme

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