Interface ServerBuilderDelegate


  • public interface ServerBuilderDelegate
    This class is internally used by the ServerBuilder to create servers. You usually don't want to interact with this object.
    • 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.