Package org.javacord.core.event.server
Class ServerChangeDiscoverySplashEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.server.ServerEventImpl
-
- org.javacord.core.event.server.ServerChangeDiscoverySplashEventImpl
-
- All Implemented Interfaces:
Event
,ServerChangeDiscoverySplashEvent
,ServerEvent
public class ServerChangeDiscoverySplashEventImpl extends ServerEventImpl implements ServerChangeDiscoverySplashEvent
The implementation ofServerChangeDiscoverySplashEvent
.
-
-
Constructor Summary
Constructors Constructor Description ServerChangeDiscoverySplashEventImpl(ServerImpl server, String newDiscoverySplashHash, String oldDiscoverySplashHash)
Creates a new discovery splash hash change event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Icon>
getNewDiscoverySplash()
Optional<Icon>
getOldDiscoverySplash()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.javacord.api.event.server.ServerEvent
getServer
-
Methods inherited from class org.javacord.core.event.server.ServerEventImpl
getServer
-
-
-
-
Constructor Detail
-
ServerChangeDiscoverySplashEventImpl
public ServerChangeDiscoverySplashEventImpl(ServerImpl server, String newDiscoverySplashHash, String oldDiscoverySplashHash)
Creates a new discovery splash hash change event.- Parameters:
server
- The server of the event.newDiscoverySplashHash
- The new discovery splash hash of the server.oldDiscoverySplashHash
- The old discovery splash hash of the server.
-
-
Method Detail
-
getOldDiscoverySplash
public Optional<Icon> getOldDiscoverySplash()
- Specified by:
getOldDiscoverySplash
in interfaceServerChangeDiscoverySplashEvent
-
getNewDiscoverySplash
public Optional<Icon> getNewDiscoverySplash()
- Specified by:
getNewDiscoverySplash
in interfaceServerChangeDiscoverySplashEvent
-
-