Package org.javacord.api.internal
Interface AccountUpdaterDelegate
-
public interface AccountUpdaterDelegateThis class is internally used by theAccountUpdaterto update the connected account. You usually don't want to interact with this object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetAvatar(byte[] avatar)Queues the avatar of the connected account to get updated.voidsetAvatar(byte[] avatar, java.lang.String fileType)Queues the avatar of the connected account to get updated.voidsetAvatar(java.awt.image.BufferedImage avatar)Queues the avatar of the connected account to get updated.voidsetAvatar(java.awt.image.BufferedImage avatar, java.lang.String fileType)Queues the avatar of the connected account to get updated.voidsetAvatar(java.io.File avatar)Queues the avatar of the connected account to get updated.voidsetAvatar(java.io.InputStream avatar)Queues the avatar of the connected account to get updated.voidsetAvatar(java.io.InputStream avatar, java.lang.String fileType)Queues the avatar of the connected account to get updated.voidsetAvatar(java.net.URL avatar)Queues the avatar of the connected account to get updated.voidsetAvatar(Icon avatar)Queues the avatar of the connected account to get updated.voidsetUsername(java.lang.String username)Queues the username of the connected account to get updated.java.util.concurrent.CompletableFuture<java.lang.Void>update()Performs the queued updates.
-
-
-
Method Detail
-
setUsername
void setUsername(java.lang.String username)
Queues the username of the connected account to get updated.- Parameters:
username- The username to set.
-
setAvatar
void setAvatar(java.awt.image.BufferedImage avatar)
Queues the avatar of the connected account to get updated. This method assumes the file type is "png"!- Parameters:
avatar- The avatar to set.
-
setAvatar
void setAvatar(java.awt.image.BufferedImage avatar, java.lang.String fileType)Queues the avatar of the connected account to get updated.- Parameters:
avatar- The avatar to set.fileType- The type of the avatar, e.g. "png" or "jpg".
-
setAvatar
void setAvatar(java.io.File avatar)
Queues the avatar of the connected account to get updated.- Parameters:
avatar- The avatar to set.
-
setAvatar
void setAvatar(Icon avatar)
Queues the avatar of the connected account to get updated.- Parameters:
avatar- The avatar to set.
-
setAvatar
void setAvatar(java.net.URL avatar)
Queues the avatar of the connected account to get updated.- Parameters:
avatar- The avatar to set.
-
setAvatar
void setAvatar(byte[] avatar)
Queues the avatar of the connected account to get updated. This method assumes the file type is "png"!- Parameters:
avatar- The avatar to set.
-
setAvatar
void setAvatar(byte[] avatar, java.lang.String fileType)Queues the avatar of the connected account to get updated.- Parameters:
avatar- The avatar to set.fileType- The type of the avatar, e.g. "png" or "jpg".
-
setAvatar
void setAvatar(java.io.InputStream avatar)
Queues the avatar of the connected account to get updated. This method assumes the file type is "png"!- Parameters:
avatar- The avatar to set.
-
setAvatar
void setAvatar(java.io.InputStream avatar, java.lang.String fileType)Queues the avatar of the connected account to get updated.- Parameters:
avatar- The avatar to set.fileType- The type of the avatar, e.g. "png" or "jpg".
-
update
java.util.concurrent.CompletableFuture<java.lang.Void> update()
Performs the queued updates.- Returns:
- A future to check if the update was successful.
-
-