Package discord4j.rest.util
Enum AllowedMentions.Type
- java.lang.Object
-
- java.lang.Enum<AllowedMentions.Type>
-
- discord4j.rest.util.AllowedMentions.Type
-
- All Implemented Interfaces:
Serializable,Comparable<AllowedMentions.Type>
- Enclosing class:
- AllowedMentions
public static enum AllowedMentions.Type extends Enum<AllowedMentions.Type>
An allowed mentions type, grouped into role mentions, user mentions and everyone mentions (includes @everyone and @here).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVERYONE_AND_HEREControl @everyone and @here mentions.ROLEControl role mentions.USERControl user mentions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRaw()static AllowedMentions.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static AllowedMentions.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ROLE
public static final AllowedMentions.Type ROLE
Control role mentions.
-
USER
public static final AllowedMentions.Type USER
Control user mentions.
-
EVERYONE_AND_HERE
public static final AllowedMentions.Type EVERYONE_AND_HERE
Control @everyone and @here mentions.
-
-
Method Detail
-
values
public static AllowedMentions.Type[] 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 (AllowedMentions.Type c : AllowedMentions.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AllowedMentions.Type 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
-
getRaw
public String getRaw()
-
-