UpdateEvent<Guild,Member>
public class GuildUpdateOwnerEvent extends GenericGuildUpdateEvent<Member>
Guild
changed.
Can be used to detect when an owner of a guild changes and retrieve the old one
Identifier: owner
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
IDENTIFIER |
Constructor | Description |
---|---|
GuildUpdateOwnerEvent(JDA api,
long responseNumber,
Guild guild,
Member oldOwner) |
Modifier and Type | Method | Description |
---|---|---|
Member |
getNewOwner() |
The new owner
|
Member |
getOldOwner() |
The old owner
|
getJDA, getResponseNumber
getGuild
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEntityType
public static final java.lang.String IDENTIFIER