public static enum Message.Flag extends Enum<Message.Flag>
Enum Constant and Description |
---|
CROSSPOSTED
This message has been published to subscribed channels (via Channel Following).
|
IS_CROSSPOST
This message originated from a message in another channel (via Channel Following).
|
SOURCE_MESSAGE_DELETED
The source message for this crosspost has been deleted (via Channel Following).
|
SUPPRESS_EMBEDS
Do not include any embeds when serializing this message.
|
URGENT
This message came from the urgent message system.
|
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<Message.Flag> |
of(int value)
Gets the flags of message.
|
static Message.Flag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Message.Flag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Message.Flag CROSSPOSTED
public static final Message.Flag IS_CROSSPOST
public static final Message.Flag SUPPRESS_EMBEDS
public static final Message.Flag SOURCE_MESSAGE_DELETED
public static final Message.Flag URGENT
public static Message.Flag[] values()
for (Message.Flag c : Message.Flag.values()) System.out.println(c);
public static Message.Flag 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<Message.Flag> 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.