public static enum Embed.Type extends Enum<Embed.Type>
Enum Constant and Description |
---|
IMAGE
An embed generated by an image.
|
LINK
An embed generated by a link.
|
RICH
An embed generated by rich content.
|
VIDEO
An embed generated by a video.
|
Modifier and Type | Method and Description |
---|---|
String |
getValue()
Gets the underlying value as represented by Discord.
|
static Embed.Type |
of(String value)
Gets the type of embed.
|
static Embed.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Embed.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Embed.Type IMAGE
public static final Embed.Type LINK
public static final Embed.Type RICH
public static final Embed.Type VIDEO
public static Embed.Type[] values()
for (Embed.Type c : Embed.Type.values()) System.out.println(c);
public static Embed.Type 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 String getValue()
public static Embed.Type of(String value)
getValue()
from the returned enum will equal
(Enum.equals(Object)
) the supplied value
.value
- The underlying value as represented by Discord.