Enum AttachmentFlag
- All Implemented Interfaces:
Serializable, Comparable<AttachmentFlag>
The flags for a
Message Attachment.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis attachment is an animated imageThis attachment is a clip from a streamThis attachment is edited using the remix feature on mobileThis attachment is marked as a spoiler and is blurred until clickedThis attachment is the thumbnail of a thread in aMediaChannel, displayed in the grid but not on the message -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumSet<AttachmentFlag> fromBitField(int bitset) Converts a bitfield to anEnumSetofAttachmentFlagvalues.intgetRaw()The raw value used by Discord for this flag.static AttachmentFlagReturns the enum constant of this type with the specified name.static AttachmentFlag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IS_CLIP
This attachment is a clip from a stream -
IS_THUMBNAIL
This attachment is the thumbnail of a thread in aMediaChannel, displayed in the grid but not on the message -
IS_REMIX
This attachment is edited using the remix feature on mobile -
IS_SPOILER
This attachment is marked as a spoiler and is blurred until clicked -
IS_ANIMATED
This attachment is an animated image
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getRaw
public int getRaw()The raw value used by Discord for this flag.- Returns:
- The raw value
-
fromBitField
Converts a bitfield to anEnumSetofAttachmentFlagvalues.- Parameters:
bitset- the bit field representing a set of attachment flags- Returns:
EnumSetcontaining the attachment flags corresponding to the specified bit field
-