Table of Contents

Method ModifyAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

ModifyAsync(Action<ScheduledEventExceptionEditModel>, CancellationToken)

Modifies this scheduled event exception.

public Task<DiscordScheduledEventException> ModifyAsync(Action<ScheduledEventExceptionEditModel> action, CancellationToken cancellationToken = default)

Parameters

action Action<ScheduledEventExceptionEditModel>

The action to apply to the edit model.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordScheduledEventException>

The updated scheduled event exception.

Exceptions

UnauthorizedException

Thrown when the client does not have the correct permissions.

NotFoundException

Thrown when the event or exception does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.