UpdateEvent<Guild,Guild.NotificationLevel>public class GuildUpdateNotificationLevelEvent extends GenericGuildUpdateEvent<Guild.NotificationLevel>
NotificationLevel of a Guild changed.
Can be used to detect when a NotificationLevel changes and retrieve the old one
Identifier: notification_level
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
IDENTIFIER |
| Constructor | Description |
|---|---|
GuildUpdateNotificationLevelEvent(JDA api,
long responseNumber,
Guild guild,
Guild.NotificationLevel oldNotificationLevel) |
| Modifier and Type | Method | Description |
|---|---|---|
Guild.NotificationLevel |
getNewNotificationLevel() |
The new
NotificationLevel |
Guild.NotificationLevel |
getOldNotificationLevel() |
The old
NotificationLevel |
getJDA, getResponseNumbergetGuildgetEntity, getNewValue, getOldValue, getPropertyIdentifier, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntityTypepublic static final java.lang.String IDENTIFIER
public GuildUpdateNotificationLevelEvent(JDA api, long responseNumber, Guild guild, Guild.NotificationLevel oldNotificationLevel)
public Guild.NotificationLevel getOldNotificationLevel()
NotificationLevelpublic Guild.NotificationLevel getNewNotificationLevel()
NotificationLevel