Package org.javacord.api.event.server
Interface ServerChangeOwnerEvent
-
- All Superinterfaces:
Event,ServerEvent
public interface ServerChangeOwnerEvent extends ServerEvent
A server change owner event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Optional<User>getNewOwner()Gets the new owner of the server.longgetNewOwnerId()Gets the id of the new owner of the server.default Optional<User>getOldOwner()Gets the old owner of the server.longgetOldOwnerId()Gets the id of the old owner of the server.-
Methods inherited from interface org.javacord.api.event.server.ServerEvent
getServer
-
-
-
-
Method Detail
-
getOldOwner
default Optional<User> getOldOwner()
Gets the old owner of the server.- Returns:
- The old owner of the server.
-
getOldOwnerId
long getOldOwnerId()
Gets the id of the old owner of the server.- Returns:
- The old owner's id.
-
getNewOwner
default Optional<User> getNewOwner()
Gets the new owner of the server.- Returns:
- The new owner of the server.
-
getNewOwnerId
long getNewOwnerId()
Gets the id of the new owner of the server.- Returns:
- The new owner's id.
-
-