Enum ServerFeature

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ServerFeature>

    public enum ServerFeature
    extends java.lang.Enum<ServerFeature>
    An enum with all server features.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ServerFeature valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ServerFeature[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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.
      • COMMUNITY

        public static final ServerFeature COMMUNITY
        Server is a community server.
      • 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.
      • INVITE_SPLASH

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

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

        public static final ServerFeature PARTNERED
        Server is partnered.
      • PREVIEW_ENABLED

        public static final ServerFeature PREVIEW_ENABLED
        Server can be previewed before joining via Membership Screening or the directory.
      • 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.
      • VIP_REGIONS

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

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

        public static final ServerFeature TICKETED_EVENTS_ENABLED
        Server has enabled ticketed events.
      • MONETIZATION_ENABLED

        public static final ServerFeature MONETIZATION_ENABLED
        Server has enabled monetization.
      • MORE_STICKERS

        public static final ServerFeature MORE_STICKERS
        Server has increased custom sticker slots.
      • PRIVATE_THREADS

        public static final ServerFeature PRIVATE_THREADS
        Server has access to create private threads.
      • ANIMATED_BANNER

        public static final ServerFeature ANIMATED_BANNER
        Server has access to set an animated guild banner image.
      • AUTO_MODERATION

        public static final ServerFeature AUTO_MODERATION
        Server has set up auto moderation rules.
      • INVITES_DISABLED

        public static final ServerFeature INVITES_DISABLED
        Server has paused invites, preventing new users from joining.
    • 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​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null