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. |