Method ModifyCurrentUser
| Improve this Doc View SourceModifyCurrentUser(string?, DiscordImageData?)
Modifies the current bot's user object. Parameters left null will leave the properties unchanged.
Declaration
public Task<DiscordUser> ModifyCurrentUser(string? username = null, DiscordImageData? avatar = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | username | |
| DiscordImageData | avatar |
Returns
| Type | Description |
|---|---|
| Task<DiscordUser> |
Exceptions
| Type | Condition |
|---|---|
| DiscordHttpApiException |