java.io.Serializable
, java.lang.Comparable<Message.MentionType>
public static enum Message.MentionType extends java.lang.Enum<Message.MentionType>
Patterns
Enum Constant | Description |
---|---|
CHANNEL |
Represents a mention for a
TextChannel |
EMOTE |
Represents a mention for a
Emote |
EVERYONE |
Represents a mention for all users in a server, literal
@everyone . |
HERE |
Represents a mention for all active users, literal
@here |
ROLE |
Represents a mention for a
Role |
USER |
Modifier and Type | Method | Description |
---|---|---|
java.util.regex.Pattern |
getPattern() |
|
static Message.MentionType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Message.MentionType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Message.MentionType USER
public static final Message.MentionType ROLE
Role
public static final Message.MentionType CHANNEL
TextChannel
public static final Message.MentionType EMOTE
Emote
public static final Message.MentionType HERE
@here
public static final Message.MentionType EVERYONE
@everyone
.
This is not the same as guild.getPublicRole().getAsMention()
!
public static Message.MentionType[] values()
for (Message.MentionType c : Message.MentionType.values()) System.out.println(c);
public static Message.MentionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.util.regex.Pattern getPattern()