Package org.javacord.core.event.server
Class ServerChangeRulesChannelEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.server.ServerEventImpl
-
- org.javacord.core.event.server.ServerChangeRulesChannelEventImpl
-
- All Implemented Interfaces:
Event
,ServerChangeRulesChannelEvent
,ServerEvent
public class ServerChangeRulesChannelEventImpl extends ServerEventImpl implements ServerChangeRulesChannelEvent
The implementation ofServerChangeRulesChannelEvent
.
-
-
Constructor Summary
Constructors Constructor Description ServerChangeRulesChannelEventImpl(ServerImpl server, ServerTextChannel newRulesChannel, ServerTextChannel oldRulesChannel)
Creates a new rules channel change event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<ServerTextChannel>
getNewRulesChannel()
java.util.Optional<ServerTextChannel>
getOldRulesChannel()
-
Methods inherited from class org.javacord.core.event.server.ServerEventImpl
getServer
-
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
-
-
-
-
Constructor Detail
-
ServerChangeRulesChannelEventImpl
public ServerChangeRulesChannelEventImpl(ServerImpl server, ServerTextChannel newRulesChannel, ServerTextChannel oldRulesChannel)
Creates a new rules channel change event.- Parameters:
server
- The server of the event.newRulesChannel
- The new rules channel of the server.oldRulesChannel
- The old rules channel of the server.
-
-
Method Detail
-
getOldRulesChannel
public java.util.Optional<ServerTextChannel> getOldRulesChannel()
- Specified by:
getOldRulesChannel
in interfaceServerChangeRulesChannelEvent
-
getNewRulesChannel
public java.util.Optional<ServerTextChannel> getNewRulesChannel()
- Specified by:
getNewRulesChannel
in interfaceServerChangeRulesChannelEvent
-
-