public class AccountManager
extends java.lang.Object
Constructor and Description |
---|
AccountManager(JDAImpl api,
java.lang.String password) |
Modifier and Type | Method and Description |
---|---|
AccountManager |
setAvatar(AvatarUtil.Avatar avatar)
Set the avatar of the connected account.
|
AccountManager |
setEmail(java.lang.String email)
Set the email of the connected account.
|
AccountManager |
setGame(java.lang.String game)
Set currently played game of the connected account.
|
AccountManager |
setIdle(boolean idle)
Set status of the connected account.
|
AccountManager |
setPassword(java.lang.String password)
Set the password of the connected account.
|
AccountManager |
setUsername(java.lang.String username)
Set the username of the connected account.
|
AccountManager |
update()
Updates the profile of the connected account, sends the changed data to the Discord server.
|
AccountManager |
updatePassword(java.lang.String password)
Used to update the password used with authentication.
This is NOT used to changed the password. |
public AccountManager(JDAImpl api, java.lang.String password)
public AccountManager setAvatar(AvatarUtil.Avatar avatar)
update()
is called
Avatars can get generated through the methods of AvatarUtil
avatar
- a Avatar object, null to keep current Avatar or AvatarUtil#DELETE_AVATAR
to remove the avatarpublic AccountManager setEmail(java.lang.String email)
update()
is calledemail
- the new email or null to discard changespublic AccountManager setPassword(java.lang.String password)
update()
is calledpassword
- the new password or null to discard changespublic AccountManager setUsername(java.lang.String username)
update()
is calledusername
- the new username or null to discard changespublic AccountManager setGame(java.lang.String game)
game
- the name of the game that should be displayedpublic AccountManager setIdle(boolean idle)
idle
- weather the account should be displayed as idle o notpublic AccountManager updatePassword(java.lang.String password)
If you would like to change the account's password, please use setPassword(String)
.
password
- The non-null updated account password.AccountManager
instance.public AccountManager update()