Class GuildUpdateOwnerEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.guild.GenericGuildEvent
-
- net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEvent<Member>
-
- net.dv8tion.jda.api.events.guild.update.GuildUpdateOwnerEvent
-
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<Guild,Member>
public class GuildUpdateOwnerEvent extends GenericGuildUpdateEvent<Member>
Indicates that the owner of aGuild
changed.Can be used to detect when an owner of a guild changes and retrieve the old one
Identifier:
owner
-
-
Field Summary
Fields Modifier and Type Field Description static String
IDENTIFIER
-
Constructor Summary
Constructors Constructor Description GuildUpdateOwnerEvent(JDA api, long responseNumber, Guild guild, Member oldOwner, long prevId, long nextId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Member
getNewOwner()
The new ownerString
getNewOwnerId()
The new owner user idlong
getNewOwnerIdLong()
The new owner user idMember
getOldOwner()
The old ownerString
getOldOwnerId()
The previous owner user idlong
getOldOwnerIdLong()
The previous owner user id-
Methods 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 Detail
-
IDENTIFIER
public static final String IDENTIFIER
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-