Class GuildMemberUpdateTimeOutEvent

All Implemented Interfaces:
GenericEvent, UpdateEvent<Member, OffsetDateTime>

public class GuildMemberUpdateTimeOutEvent extends GenericGuildMemberUpdateEvent<OffsetDateTime>
Indicates that a Member had their time out changed.
This event does not fire for automatic time out expiration.

Can be used to retrieve members who had their time out changed and the triggering guild.

Identifier: timeout_time

Requirements

This event requires the GUILD_MEMBERS intent to be enabled.
createDefault(String) and createLight(String) disable this by default!

Additionally, this event requires the MemberCachePolicy to cache the updated members. Discord does not specifically tell us about the updates, but merely tells us the member was updated and gives us the updated member object. In order to fire a specific event like this we need to have the old member cached to compare against.

  • Field Details

  • Constructor Details

    • GuildMemberUpdateTimeOutEvent

      public GuildMemberUpdateTimeOutEvent(@Nonnull JDA api, long responseNumber, @Nonnull Member member, @Nullable OffsetDateTime previous)
  • Method Details

    • getOldTimeOutEnd

      @Nullable public OffsetDateTime getOldTimeOutEnd()
      The old end of the time out
      Returns:
      The old end of the time out
    • getNewTimeOutEnd

      @Nullable public OffsetDateTime getNewTimeOutEnd()
      The new end of the time out
      Returns:
      The new end of the time out