Class GuildUpdateAfkChannelEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GenericGuildEvent
net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEvent<VoiceChannel>
net.dv8tion.jda.api.events.guild.update.GuildUpdateAfkChannelEvent
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<Guild,
VoiceChannel>
Indicates that the afk-channel of a
Guild
changed.
Can be used to detect when an afk channel changes and retrieve the old one
Identifier: afk_channel
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGuildUpdateAfkChannelEvent
(JDA api, long responseNumber, Guild guild, VoiceChannel oldAfkChannel) -
Method Summary
Modifier and TypeMethodDescriptionThe new afk channelThe old afk channelMethods inherited from class net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getResponseNumber
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
GuildUpdateAfkChannelEvent
-
-
Method Details
-
getOldAfkChannel
The old afk channel- Returns:
- The old afk channel, or null
-
getNewAfkChannel
The new afk channel- Returns:
- The new afk channel, or null
-