Method SuppressEmbedsAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
SuppressEmbedsAsync(CancellationToken)
Edits the message embed suppression.
public Task<DiscordMessage> SuppressEmbedsAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to cancel the request.
Returns
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.