Table of Contents

Delegate RestResponseCallback

Namespace
Discord.Interactions
Assembly
Discord.Net.Interactions.dll

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

public delegate Task RestResponseCallback(IInteractionContext context, string responseBody)

Parameters

context IInteractionContext

Execution context that will be injected into the module class.

responseBody string

Body of the interaction response.

Returns

Task

A task representing the response operation.