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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuildUpdateAfkChannelEvent(JDA api, long responseNumber, Guild guild, VoiceChannel oldAfkChannel) -
Method Summary
Modifier and TypeMethodDescriptionThe new afk channelThe old afk channelMethods inherited from class GenericGuildUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifierMethods inherited from class GenericGuildEvent
getGuildMethods inherited from class Event
getJDA, getRawData, getResponseNumber, toStringMethods inherited from interface GenericEvent
getJDA, getRawData, getResponseNumberMethods inherited from interface UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
GuildUpdateAfkChannelEvent
public GuildUpdateAfkChannelEvent(@Nonnull JDA api, long responseNumber, @Nonnull Guild guild, @Nullable VoiceChannel oldAfkChannel)
-
-
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
-