Package org.javacord.core.event.server
Class ServerChangeAfkChannelEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.server.ServerEventImpl
-
- org.javacord.core.event.server.ServerChangeAfkChannelEventImpl
-
- All Implemented Interfaces:
Event
,ServerChangeAfkChannelEvent
,ServerEvent
public class ServerChangeAfkChannelEventImpl extends ServerEventImpl implements ServerChangeAfkChannelEvent
The implementation ofServerChangeAfkChannelEvent
.
-
-
Constructor Summary
Constructors Constructor Description ServerChangeAfkChannelEventImpl(Server server, ServerVoiceChannel newAfkChannel, ServerVoiceChannel oldAfkChannel)
Creates a new server change afk channel event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ServerVoiceChannel>
getNewAfkChannel()
Optional<ServerVoiceChannel>
getOldAfkChannel()
-
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
-
ServerChangeAfkChannelEventImpl
public ServerChangeAfkChannelEventImpl(Server server, ServerVoiceChannel newAfkChannel, ServerVoiceChannel oldAfkChannel)
Creates a new server change afk channel event.- Parameters:
server
- The server of the event.newAfkChannel
- The new afk channel of the server.oldAfkChannel
- The old afk channel of the server.
-
-
Method Detail
-
getOldAfkChannel
public Optional<ServerVoiceChannel> getOldAfkChannel()
- Specified by:
getOldAfkChannel
in interfaceServerChangeAfkChannelEvent
-
getNewAfkChannel
public Optional<ServerVoiceChannel> getNewAfkChannel()
- Specified by:
getNewAfkChannel
in interfaceServerChangeAfkChannelEvent
-
-