public static enum Guild.NotificationLevel extends java.lang.Enum<Guild.NotificationLevel>
All_Messages -> Every message sent in this guild will result in a message ping.
Mentions_Only -> Only messages that specifically mention will result in a ping.
Enum Constant | Description |
---|---|
ALL_MESSAGES |
|
MENTIONS_ONLY |
|
UNKNOWN |
Modifier and Type | Method | Description |
---|---|---|
static Guild.NotificationLevel |
fromKey(int key) |
Used to retrieve a
NotificationLevel based
on the Discord id key. |
int |
getKey() |
The Discord id key used to represent this NotificationLevel.
|
static Guild.NotificationLevel |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Guild.NotificationLevel[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Guild.NotificationLevel ALL_MESSAGES
public static final Guild.NotificationLevel MENTIONS_ONLY
public static final Guild.NotificationLevel UNKNOWN
public static Guild.NotificationLevel[] values()
for (Guild.NotificationLevel c : Guild.NotificationLevel.values()) System.out.println(c);
public static Guild.NotificationLevel 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 int getKey()
public static Guild.NotificationLevel fromKey(int key)
NotificationLevel
based
on the Discord id key.key
- The Discord id key representing the requested NotificationLevel.NotificationLevel.UNKNOWN
if the key is not recognized.