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 aGuildchanged.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 StringIDENTIFIER
-
Constructor Summary
Constructors Constructor Description GuildUpdateOwnerEvent(JDA api, long responseNumber, Guild guild, Member oldOwner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MembergetNewOwner()The new ownerMembergetNewValue()The new valueMembergetOldOwner()The old ownerMembergetOldValue()The old value-
Methods inherited from class net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEvent
getEntity, 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
-
getOldValue
@Nonnull public Member getOldValue()
Description copied from interface:UpdateEventThe old value- Specified by:
getOldValuein interfaceUpdateEvent<Guild,Member>- Overrides:
getOldValuein classGenericGuildUpdateEvent<Member>- Returns:
- The old value
-
getNewValue
@Nonnull public Member getNewValue()
Description copied from interface:UpdateEventThe new value- Specified by:
getNewValuein interfaceUpdateEvent<Guild,Member>- Overrides:
getNewValuein classGenericGuildUpdateEvent<Member>- Returns:
- The new value
-
-