Table of Contents

Method ModifyCurrentMemberAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

ModifyCurrentMemberAsync(Action<CurrentMemberEditModel>)

Modifies the current bot member.

public Task<DiscordMember> ModifyCurrentMemberAsync(Action<CurrentMemberEditModel> action)

Parameters

action Action<CurrentMemberEditModel>

Action to perform on the current member.

Returns

Task<DiscordMember>

Exceptions

UnauthorizedException

Thrown when the client does not have the ChangeNickname or ManageRoles permission.

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.