Table of Contents

Method ExecuteGithubAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

ExecuteGithubAsync(string)

Executes this webhook in GitHub compatibility mode.

public Task ExecuteGithubAsync(string json)

Parameters

json string

JSON containing GitHub-compatible payload for this webhook.

Returns

Task

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.