Package org.javacord.api.entity.server
Enum ServerFeature
- java.lang.Object
-
- java.lang.Enum<ServerFeature>
-
- org.javacord.api.entity.server.ServerFeature
-
- All Implemented Interfaces:
Serializable,Comparable<ServerFeature>
public enum ServerFeature extends Enum<ServerFeature>
An enum with all server features.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANIMATED_ICONServer has access to set an animated Server icon.BANNERServer has access to set a Server banner image.COMMERCEServer has access to use commerce features (i.e.COMMUNITYServer is a community server.DISCOVERABLEServer is able to be discovered in the directory.FEATURABLEServer is able to be featured in the directory.INVITE_SPLASHServer has access to set an invite splash background.MEMBER_VERIFICATION_GATE_ENABLEDServer has enabled Membership Screening.NEWSServer has access to create news channels.PARTNEREDServer is partnered.PREVIEW_ENABLEDServer can be previewed before joining via Membership Screening or the directory.VANITY_URLServer has access to set a vanity URL.VERIFIEDServer is verified.VIP_REGIONSServer has access to set 384kbps bitrate in voice (previously VIP voice servers).WELCOME_SCREEN_ENABLEDServer has enabled the welcome screen.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServerFeaturevalueOf(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.
-
-
-
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.
-
COMMUNITY
public static final ServerFeature COMMUNITY
Server is a community server.
-
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.
-
WELCOME_SCREEN_ENABLED
public static final ServerFeature WELCOME_SCREEN_ENABLED
Server has enabled the welcome screen.
-
MEMBER_VERIFICATION_GATE_ENABLED
public static final ServerFeature MEMBER_VERIFICATION_GATE_ENABLED
Server has enabled Membership Screening.
-
PREVIEW_ENABLED
public static final ServerFeature PREVIEW_ENABLED
Server can be previewed before joining via Membership Screening or the directory.
-
-
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 nameNullPointerException- if the argument is null
-
-