public static enum Guild.SystemChannelFlag extends Enum<Guild.SystemChannelFlag>
Enum Constant and Description |
---|
SUPPRESS_JOIN_NOTIFICATIONS
Member join notifications are suppressed.
|
SUPPRESS_PREMIUM_SUBSCRIPTIONS
Server boost notifications are suppressed.
|
Modifier and Type | Method and 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.
|
public static final Guild.SystemChannelFlag SUPPRESS_JOIN_NOTIFICATIONS
public static final Guild.SystemChannelFlag SUPPRESS_PREMIUM_SUBSCRIPTIONS
public static Guild.SystemChannelFlag[] values()
for (Guild.SystemChannelFlag c : Guild.SystemChannelFlag.values()) System.out.println(c);
public static Guild.SystemChannelFlag valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public int getFlag()
public static EnumSet<Guild.SystemChannelFlag> of(int value)
getValue()
from the returned enum
will be equal (==
) to the supplied value
.value
- The flags value as represented by Discord.EnumSet
of flags.