UpdateEvent<Guild,VoiceChannel>
public class GuildUpdateAfkChannelEvent extends GenericGuildUpdateEvent<VoiceChannel>
Guild
changed.
Can be used to detect when an afk channel changes and retrieve the old one
Identifier: afk_channel
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
IDENTIFIER |
Constructor | Description |
---|---|
GuildUpdateAfkChannelEvent(JDA api,
long responseNumber,
Guild guild,
VoiceChannel oldAfkChannel) |
Modifier and Type | Method | Description |
---|---|---|
VoiceChannel |
getNewAfkChannel() |
The new afk channel
|
VoiceChannel |
getOldAfkChannel() |
The old afk channel
|
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 GuildUpdateAfkChannelEvent(JDA api, long responseNumber, Guild guild, VoiceChannel oldAfkChannel)
public VoiceChannel getOldAfkChannel()
public VoiceChannel getNewAfkChannel()