Class GuildUpdateOwnerEvent

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

public class GuildUpdateOwnerEvent extends GenericGuildUpdateEvent<Member>
Indicates that the owner of a Guild changed.

Can be used to detect when an owner of a guild changes and retrieve the old one

Identifier: owner

  • Field Details

  • Constructor Details

  • Method Details

    • getNewOwnerIdLong

      public long getNewOwnerIdLong()
      The new owner user id
      Returns:
      The new owner id
    • getNewOwnerId

      @Nonnull public String getNewOwnerId()
      The new owner user id
      Returns:
      The new owner id
    • getOldOwnerIdLong

      public long getOldOwnerIdLong()
      The previous owner user id
      Returns:
      The previous owner id
    • getOldOwnerId

      @Nonnull public String getOldOwnerId()
      The previous owner user id
      Returns:
      The previous owner id
    • getOldOwner

      @Nullable public Member getOldOwner()
      The old owner
      Returns:
      The old owner
    • getNewOwner

      @Nullable public Member getNewOwner()
      The new owner
      Returns:
      The new owner