Method ModifyCurrentUserAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
ModifyCurrentUserAsync(string, Optional<Stream>, Optional<Stream>)
Edits current user.
public Task<DiscordUser> ModifyCurrentUserAsync(string username = null, Optional<Stream> avatar = default, Optional<Stream> banner = default)
Parameters
username
stringNew username.
avatar
Optional<Stream>New avatar.
banner
Optional<Stream>New banner.
Returns
- Task<DiscordUser>
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.