Package org.javacord.api.entity.server
Enum SystemChannelFlag
- java.lang.Object
-
- java.lang.Enum<SystemChannelFlag>
-
- org.javacord.api.entity.server.SystemChannelFlag
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SystemChannelFlag>
public enum SystemChannelFlag extends java.lang.Enum<SystemChannelFlag>
System channel flags for various server notifications.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SUPPRESS_GUILD_REMINDER_NOTIFICATIONSSuppress server setup tips.SUPPRESS_JOIN_NOTIFICATION_REPLIESHide member join sticker reply buttons.SUPPRESS_JOIN_NOTIFICATIONSSuppress member join notifications.SUPPRESS_PREMIUM_SUBSCRIPTIONSSuppress server boost notifications.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intasInt()Gets the integer value of the flag.static SystemChannelFlagvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SystemChannelFlag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUPPRESS_JOIN_NOTIFICATIONS
public static final SystemChannelFlag SUPPRESS_JOIN_NOTIFICATIONS
Suppress member join notifications.
-
SUPPRESS_PREMIUM_SUBSCRIPTIONS
public static final SystemChannelFlag SUPPRESS_PREMIUM_SUBSCRIPTIONS
Suppress server boost notifications.
-
SUPPRESS_GUILD_REMINDER_NOTIFICATIONS
public static final SystemChannelFlag SUPPRESS_GUILD_REMINDER_NOTIFICATIONS
Suppress server setup tips.
-
SUPPRESS_JOIN_NOTIFICATION_REPLIES
public static final SystemChannelFlag SUPPRESS_JOIN_NOTIFICATION_REPLIES
Hide member join sticker reply buttons.
-
-
Method Detail
-
values
public static SystemChannelFlag[] 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 (SystemChannelFlag c : SystemChannelFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SystemChannelFlag 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
-
asInt
public int asInt()
Gets the integer value of the flag.- Returns:
- The integer value of the flag.
-
-