Method ExecuteSlackAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
ExecuteSlackAsync(string)
Executes this webhook in Slack compatibility mode.
public Task ExecuteSlackAsync(string json)
Parameters
json
stringJSON containing Slack-compatible payload for this webhook.
Returns
Exceptions
- NotFoundException
Thrown when the webhook does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.