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
IInteractionContextExecution context that will be injected into the module class.
responseBody
stringBody of the interaction response.
Returns
- Task
A task representing the response operation.