Table of Contents

Method ExecuteSlackAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

ExecuteSlackAsync(string, string)

Executes this webhook in Slack compatibility mode.

public Task ExecuteSlackAsync(string json, string threadId = null)

Parameters

json string

JSON containing Slack-compatible payload for this webhook.

threadId string

Target thread id (Optional). Defaults to null.

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.