Table of Contents

Method ModifyAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

ModifyAsync(Action<ThreadEditModel>)

Modifies the current thread.

public Task ModifyAsync(Action<ThreadEditModel> action)

Parameters

action Action<ThreadEditModel>

Action to perform on this thread

Returns

Task

Exceptions

UnauthorizedException

Thrown when the client does not have the ManageThreads permission.

NotFoundException

Thrown when the thread does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.

NotSupportedException

Thrown when the ThreadAutoArchiveDuration cannot be modified. This happens, when the guild hasn't reached a certain boost PremiumTier.