Package org.javacord.core.event.server
Class ServerChangeModeratorsOnlyChannelEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.server.ServerEventImpl
-
- org.javacord.core.event.server.ServerChangeModeratorsOnlyChannelEventImpl
-
- All Implemented Interfaces:
Event
,ServerChangeModeratorsOnlyChannelEvent
,ServerEvent
public class ServerChangeModeratorsOnlyChannelEventImpl extends ServerEventImpl implements ServerChangeModeratorsOnlyChannelEvent
The implementation ofServerChangeModeratorsOnlyChannelEvent
.
-
-
Constructor Summary
Constructors Constructor Description ServerChangeModeratorsOnlyChannelEventImpl(ServerImpl server, ServerTextChannel newModeratorsOnlyChannel, ServerTextChannel oldModeratorsOnlyChannel)
Creates a new moderators-only channel change event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<ServerTextChannel>
getNewModeratorsOnlyChannel()
java.util.Optional<ServerTextChannel>
getOldModeratorsOnlyChannel()
-
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
-
ServerChangeModeratorsOnlyChannelEventImpl
public ServerChangeModeratorsOnlyChannelEventImpl(ServerImpl server, ServerTextChannel newModeratorsOnlyChannel, ServerTextChannel oldModeratorsOnlyChannel)
Creates a new moderators-only channel change event.- Parameters:
server
- The server of the event.newModeratorsOnlyChannel
- The new moderators-only channel of the server.oldModeratorsOnlyChannel
- The old moderators-only updates channel of the server.
-
-
Method Detail
-
getOldModeratorsOnlyChannel
public java.util.Optional<ServerTextChannel> getOldModeratorsOnlyChannel()
- Specified by:
getOldModeratorsOnlyChannel
in interfaceServerChangeModeratorsOnlyChannelEvent
-
getNewModeratorsOnlyChannel
public java.util.Optional<ServerTextChannel> getNewModeratorsOnlyChannel()
- Specified by:
getNewModeratorsOnlyChannel
in interfaceServerChangeModeratorsOnlyChannelEvent
-
-