Package org.javacord.core.event.server
Class ServerChangeSystemChannelEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.server.ServerEventImpl
-
- org.javacord.core.event.server.ServerChangeSystemChannelEventImpl
-
- All Implemented Interfaces:
Event
,ServerChangeSystemChannelEvent
,ServerEvent
public class ServerChangeSystemChannelEventImpl extends ServerEventImpl implements ServerChangeSystemChannelEvent
The implementation ofServerChangeSystemChannelEvent
.
-
-
Constructor Summary
Constructors Constructor Description ServerChangeSystemChannelEventImpl(Server server, ServerTextChannel newSystemChannel, ServerTextChannel oldSystemChannel)
Creates a new server change system channel event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ServerTextChannel>
getNewSystemChannel()
Optional<ServerTextChannel>
getOldSystemChannel()
-
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
-
ServerChangeSystemChannelEventImpl
public ServerChangeSystemChannelEventImpl(Server server, ServerTextChannel newSystemChannel, ServerTextChannel oldSystemChannel)
Creates a new server change system channel event.- Parameters:
server
- The server of the event.newSystemChannel
- The new system channel of the server.oldSystemChannel
- The old system channel of the server.
-
-
Method Detail
-
getOldSystemChannel
public Optional<ServerTextChannel> getOldSystemChannel()
- Specified by:
getOldSystemChannel
in interfaceServerChangeSystemChannelEvent
-
getNewSystemChannel
public Optional<ServerTextChannel> getNewSystemChannel()
- Specified by:
getNewSystemChannel
in interfaceServerChangeSystemChannelEvent
-
-