public static enum Guild.NotificationLevel extends Enum<Guild.NotificationLevel>
Members
who have not explicitly set their notification settings receive a
notification for every message sent in the server or not.Enum Constant and Description |
---|
ALL_MESSAGES
Receive a notification for all messages.
|
ONLY_MENTIONS
Receive a notification only for mentions.
|
UNKNOWN
Unknown notification level.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Gets the underlying value as represented by Discord.
|
static Guild.NotificationLevel |
of(int value)
Gets the notification level of the guild.
|
static Guild.NotificationLevel |
valueOf(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 UNKNOWN
public static final Guild.NotificationLevel ALL_MESSAGES
public static final Guild.NotificationLevel ONLY_MENTIONS
public static Guild.NotificationLevel[] values()
for (Guild.NotificationLevel c : Guild.NotificationLevel.values()) System.out.println(c);
public static Guild.NotificationLevel 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 int getValue()
public static Guild.NotificationLevel of(int value)
getValue()
from the
returned enum will equal (==
) the supplied value
.value
- The underlying value as represented by Discord.