Table of Contents

Method UpdateCurrentUserAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

UpdateCurrentUserAsync(string?, Optional<Stream?>, Optional<Stream?>)

Edits current user.

public Task<DiscordUser> UpdateCurrentUserAsync(string? username = null, Optional<Stream?> avatar = default, Optional<Stream?> banner = default)

Parameters

username string

New username.

avatar Optional<Stream>

New avatar.

banner Optional<Stream>

New banner.

Returns

Task<DiscordUser>

The modified user.

Exceptions

NotFoundException

Thrown when the user does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.