Table of Contents

Method RemoveComponentsAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

RemoveComponentsAsync(CancellationToken)

Modifies the message by removing components.

public Task<DiscordMessage> RemoveComponentsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the request.

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.