Package org.javacord.api.entity.server
Enum ServerFeature
- java.lang.Object
-
- java.lang.Enum<ServerFeature>
-
- org.javacord.api.entity.server.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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANIMATED_BANNERServer has access to set an animated guild banner image.ANIMATED_ICONServer has access to set an animated Server icon.AUTO_MODERATIONServer has set up auto moderation rules.BANNERServer has access to set a Server banner image.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.INVITES_DISABLEDServer has paused invites, preventing new users from joining.MEMBER_VERIFICATION_GATE_ENABLEDServer has enabled Membership Screening.MONETIZATION_ENABLEDServer has enabled monetization.MORE_STICKERSServer has increased custom sticker slots.NEWSServer has access to create news channels.PARTNEREDServer is partnered.PREVIEW_ENABLEDServer can be previewed before joining via Membership Screening or the directory.PRIVATE_THREADSServer has access to create private threads.TICKETED_EVENTS_ENABLEDServer has enabled ticketed events.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(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.
-
-
-
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.
-
MEMBER_VERIFICATION_GATE_ENABLED
public static final ServerFeature MEMBER_VERIFICATION_GATE_ENABLED
Server has enabled Membership Screening.
-
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 namejava.lang.NullPointerException- if the argument is null
-
-