Interface ServerBuilderDelegate
-
public interface ServerBuilderDelegateThis class is internally used by theServerBuilderto create servers. You usually don't want to interact with this object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Long>create()Creates the server.voidsetAfkTimeoutInSeconds(int afkTimeout)Sets the server's afk timeout in seconds.voidsetDefaultMessageNotificationLevel(DefaultMessageNotificationLevel defaultMessageNotificationLevel)Sets the server's default message notification level.voidsetExplicitContentFilterLevel(ExplicitContentFilterLevel explicitContentFilterLevel)Sets the server's explicit content filter level.voidsetIcon(byte[] icon)Sets the server's icon.voidsetIcon(byte[] icon, java.lang.String fileType)Sets the server's icon.voidsetIcon(java.awt.image.BufferedImage icon)Sets the server's icon.voidsetIcon(java.awt.image.BufferedImage icon, java.lang.String fileType)Sets the server's icon.voidsetIcon(java.io.File icon)Sets the server's icon.voidsetIcon(java.io.InputStream icon)Sets the server's icon.voidsetIcon(java.io.InputStream icon, java.lang.String fileType)Sets the server's icon.voidsetIcon(java.net.URL icon)Sets the server's icon.voidsetIcon(Icon icon)Sets the server's icon.voidsetName(java.lang.String name)Sets the server's name.voidsetRegion(Region region)Sets the server's region.voidsetVerificationLevel(VerificationLevel verificationLevel)Sets the server's verification level.
-
-
-
Method Detail
-
setName
void setName(java.lang.String name)
Sets the server's name.- Parameters:
name- The name of the server.
-
setRegion
void setRegion(Region region)
Sets the server's region.- Parameters:
region- The region of the server.
-
setExplicitContentFilterLevel
void setExplicitContentFilterLevel(ExplicitContentFilterLevel explicitContentFilterLevel)
Sets the server's explicit content filter level.- Parameters:
explicitContentFilterLevel- The explicit content filter level of the server.
-
setVerificationLevel
void setVerificationLevel(VerificationLevel verificationLevel)
Sets the server's verification level.- Parameters:
verificationLevel- The verification level of the server.
-
setDefaultMessageNotificationLevel
void setDefaultMessageNotificationLevel(DefaultMessageNotificationLevel defaultMessageNotificationLevel)
Sets the server's default message notification level.- Parameters:
defaultMessageNotificationLevel- The default message notification level of the server.
-
setAfkTimeoutInSeconds
void setAfkTimeoutInSeconds(int afkTimeout)
Sets the server's afk timeout in seconds.- Parameters:
afkTimeout- The afk timeout in seconds of the server.
-
setIcon
void setIcon(java.awt.image.BufferedImage icon)
Sets the server's icon. This method assumes the file type is "png"!- Parameters:
icon- The icon of the server.
-
setIcon
void setIcon(java.awt.image.BufferedImage icon, java.lang.String fileType)Sets the server's icon.- Parameters:
icon- The icon of the server.fileType- The type of the icon, e.g. "png" or "jpg".
-
setIcon
void setIcon(java.io.File icon)
Sets the server's icon.- Parameters:
icon- The icon of the server.
-
setIcon
void setIcon(Icon icon)
Sets the server's icon.- Parameters:
icon- The icon of the server.
-
setIcon
void setIcon(java.net.URL icon)
Sets the server's icon.- Parameters:
icon- The icon of the server.
-
setIcon
void setIcon(byte[] icon)
Sets the server's icon. This method assumes the file type is "png"!- Parameters:
icon- The icon of the server.
-
setIcon
void setIcon(byte[] icon, java.lang.String fileType)Sets the server's icon.- Parameters:
icon- The icon of the server.fileType- The type of the icon, e.g. "png" or "jpg".
-
setIcon
void setIcon(java.io.InputStream icon)
Sets the server's icon. This method assumes the file type is "png"!- Parameters:
icon- The icon of the server.
-
setIcon
void setIcon(java.io.InputStream icon, java.lang.String fileType)Sets the server's icon.- Parameters:
icon- The icon of the server.fileType- The type of the icon, e.g. "png" or "jpg".
-
create
java.util.concurrent.CompletableFuture<java.lang.Long> create()
Creates the server.- Returns:
- The id of the server.
-
-