Enum ServerFeature

    • Enum Constant Detail

      • INVITE_SPLASH

        public static final ServerFeature INVITE_SPLASH
        Server has access to set an invite splash background.
      • VIP_REGIONS

        public static final ServerFeature VIP_REGIONS
        Server has access to set 384kbps bitrate in voice (previously VIP voice servers).
      • VANITY_URL

        public static final ServerFeature VANITY_URL
        Server has access to set a vanity URL.
      • VERIFIED

        public static final ServerFeature VERIFIED
        Server is verified.
      • PARTNERED

        public static final ServerFeature PARTNERED
        Server is partnered.
      • PUBLIC

        public static final ServerFeature PUBLIC
        Server is public.
      • COMMERCE

        public static final ServerFeature COMMERCE
        Server has access to use commerce features (i.e. create store channels).
      • NEWS

        public static final ServerFeature NEWS
        Server has access to create news channels.
      • DISCOVERABLE

        public static final ServerFeature DISCOVERABLE
        Server is able to be discovered in the directory.
      • FEATURABLE

        public static final ServerFeature FEATURABLE
        Server is able to be featured in the directory.
      • ANIMATED_ICON

        public static final ServerFeature ANIMATED_ICON
        Server has access to set an animated Server icon.
      • BANNER

        public static final ServerFeature BANNER
        Server has access to set a Server banner image.
      • PUBLIC_DISABLED

        public static final ServerFeature PUBLIC_DISABLED
        Server cannot be public.
      • WELCOME_SCREEN_ENABLED

        public static final ServerFeature WELCOME_SCREEN_ENABLED
        Server has enabled the welcome screen.
    • Method Detail

      • values

        public static ServerFeature[] values​()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ServerFeature c : ServerFeature.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ServerFeature valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null