UpdateEvent<Guild,Guild.Timeout>
public class GuildUpdateAfkTimeoutEvent extends GenericGuildUpdateEvent<Guild.Timeout>
AFK-Timeout
of a Guild
changed.
Can be used to detect when an afk timeout changes and retrieve the old one
Identifier: afk_timeout
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
IDENTIFIER |
Constructor | Description |
---|---|
GuildUpdateAfkTimeoutEvent​(JDA api,
long responseNumber,
Guild guild,
Guild.Timeout oldAfkTimeout) |
Modifier and Type | Method | Description |
---|---|---|
Guild.Timeout |
getNewAfkTimeout() |
The new
AFK-Timeout |
Guild.Timeout |
getOldAfkTimeout() |
The old
AFK-Timeout |
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 GuildUpdateAfkTimeoutEvent​(JDA api, long responseNumber, Guild guild, Guild.Timeout oldAfkTimeout)
public Guild.Timeout getOldAfkTimeout()
AFK-Timeout
public Guild.Timeout getNewAfkTimeout()
AFK-Timeout