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​(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​(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​(BufferedImage icon,
                     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​(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​(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,
                     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​(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​(InputStream icon,
                     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".