Method ExecuteGithubAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
ExecuteGithubAsync(string, string)
Executes this webhook in GitHub compatibility mode.
public Task ExecuteGithubAsync(string json, string threadId = null)
Parameters
json
stringJSON containing GitHub-compatible payload for this webhook.
threadId
stringTarget thread id (Optional). Defaults to null.
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.