Table of Contents

Method ModifySuppressionAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

ModifySuppressionAsync(bool)

Edits the message embed suppression.

public Task<DiscordMessage> ModifySuppressionAsync(bool suppress = false)

Parameters

suppress bool

Suppress embeds.

Returns

Task<DiscordMessage>

Exceptions

UnauthorizedException

Thrown when the client tried to modify a message not sent by them.

NotFoundException

Thrown when the member does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.