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>
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuildUpdateOwnerEvent(JDA api, long responseNumber, Guild guild, Member oldOwner, long prevId, long nextId) -
Method Summary
Modifier and TypeMethodDescriptionThe new ownerThe new owner user idlongThe new owner user idThe old ownerThe previous owner user idlongThe previous owner user idMethods inherited from class net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifierMethods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuildMethods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getRawData, getResponseNumberMethods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
GuildUpdateOwnerEvent
-
-
Method Details
-
getNewOwnerIdLong
public long getNewOwnerIdLong()The new owner user id- Returns:
- The new owner id
-
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
The previous owner user id- Returns:
- The previous owner id
-
getOldOwner
The old owner- Returns:
- The old owner
-
getNewOwner
The new owner- Returns:
- The new owner
-