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, getResponseNumber
getGuild
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEntityType
public static final java.lang.String IDENTIFIER
public GuildUpdateNotificationLevelEvent​(JDA api, long responseNumber, Guild guild, Guild.NotificationLevel oldNotificationLevel)
public Guild.NotificationLevel getOldNotificationLevel()
NotificationLevel
public Guild.NotificationLevel getNewNotificationLevel()
NotificationLevel