Class GuildUpdateAfkChannelEvent

All Implemented Interfaces:
GenericEvent, UpdateEvent<Guild, VoiceChannel>

public class GuildUpdateAfkChannelEvent extends GenericGuildUpdateEvent<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 Details

  • Constructor Details

    • GuildUpdateAfkChannelEvent

      public GuildUpdateAfkChannelEvent(@Nonnull JDA api, long responseNumber, @Nonnull Guild guild, @Nullable VoiceChannel oldAfkChannel)
  • Method Details

    • getOldAfkChannel

      @Nullable public VoiceChannel getOldAfkChannel()
      The old afk channel
      Returns:
      The old afk channel, or null
    • getNewAfkChannel

      @Nullable public VoiceChannel getNewAfkChannel()
      The new afk channel
      Returns:
      The new afk channel, or null