Package discord4j.core.object.entity
Enum Guild.SystemChannelFlag
- java.lang.Object
-
- java.lang.Enum<Guild.SystemChannelFlag>
-
- discord4j.core.object.entity.Guild.SystemChannelFlag
-
- All Implemented Interfaces:
Serializable
,Comparable<Guild.SystemChannelFlag>
- Enclosing class:
- Guild
public static enum Guild.SystemChannelFlag extends Enum<Guild.SystemChannelFlag>
Describes system channel flags.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SUPPRESS_GUILD_REMINDER_NOTIFICATIONS
Suppress server setup tips.SUPPRESS_JOIN_NOTIFICATION_REPLIES
Hide member join sticker reply buttonsSUPPRESS_JOIN_NOTIFICATIONS
Suppress member join notifications.SUPPRESS_PREMIUM_SUBSCRIPTIONS
Suppress server boost notifications.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFlag()
Gets the flag value as represented by Discord.int
getValue()
Gets the underlying value as represented by Discord.static EnumSet<Guild.SystemChannelFlag>
of(int value)
Gets the flags of system channel.static Guild.SystemChannelFlag
valueOf(String name)
Returns the enum constant of this type with the specified name.static Guild.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 Guild.SystemChannelFlag SUPPRESS_JOIN_NOTIFICATIONS
Suppress member join notifications.
-
SUPPRESS_PREMIUM_SUBSCRIPTIONS
public static final Guild.SystemChannelFlag SUPPRESS_PREMIUM_SUBSCRIPTIONS
Suppress server boost notifications.
-
SUPPRESS_GUILD_REMINDER_NOTIFICATIONS
public static final Guild.SystemChannelFlag SUPPRESS_GUILD_REMINDER_NOTIFICATIONS
Suppress server setup tips.
-
SUPPRESS_JOIN_NOTIFICATION_REPLIES
public static final Guild.SystemChannelFlag SUPPRESS_JOIN_NOTIFICATION_REPLIES
Hide member join sticker reply buttons
-
-
Method Detail
-
values
public static Guild.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 (Guild.SystemChannelFlag c : Guild.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 Guild.SystemChannelFlag 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
-
getValue
public int getValue()
Gets the underlying value as represented by Discord.- Returns:
- The underlying value as represented by Discord.
-
getFlag
public int getFlag()
Gets the flag value as represented by Discord.- Returns:
- The flag value as represented by Discord.
-
of
public static EnumSet<Guild.SystemChannelFlag> of(int value)
Gets the flags of system channel. It is guaranteed that invokinggetValue()
from the returned enum will be equal (==
) to the suppliedvalue
.- Parameters:
value
- The flags value as represented by Discord.- Returns:
- The
EnumSet
of flags.
-
-