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, getResponseNumbergetGuildgetEntity, getNewValue, getOldValue, getPropertyIdentifier, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntityTypepublic static final java.lang.String IDENTIFIER
public GuildUpdateAfkTimeoutEvent(JDA api, long responseNumber, Guild guild, Guild.Timeout oldAfkTimeout)
public Guild.Timeout getOldAfkTimeout()
AFK-Timeoutpublic Guild.Timeout getNewAfkTimeout()
AFK-Timeout