Package org.javacord.core.event.server
Class ServerChangeAfkTimeoutEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.server.ServerEventImpl
-
- org.javacord.core.event.server.ServerChangeAfkTimeoutEventImpl
-
- All Implemented Interfaces:
Event
,ServerChangeAfkTimeoutEvent
,ServerEvent
public class ServerChangeAfkTimeoutEventImpl extends ServerEventImpl implements ServerChangeAfkTimeoutEvent
The implementation ofServerChangeAfkTimeoutEvent
.
-
-
Constructor Summary
Constructors Constructor Description ServerChangeAfkTimeoutEventImpl(Server server, int newAfkTimeout, int oldAfkTimeout)
Creates a new server change afk timeout event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNewAfkTimeoutInSeconds()
int
getOldAfkTimeoutInSeconds()
-
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
-
ServerChangeAfkTimeoutEventImpl
public ServerChangeAfkTimeoutEventImpl(Server server, int newAfkTimeout, int oldAfkTimeout)
Creates a new server change afk timeout event.- Parameters:
server
- The server of the event.newAfkTimeout
- The new afk timeout of the server.oldAfkTimeout
- The old afk timeout of the server.
-
-
Method Detail
-
getOldAfkTimeoutInSeconds
public int getOldAfkTimeoutInSeconds()
- Specified by:
getOldAfkTimeoutInSeconds
in interfaceServerChangeAfkTimeoutEvent
-
getNewAfkTimeoutInSeconds
public int getNewAfkTimeoutInSeconds()
- Specified by:
getNewAfkTimeoutInSeconds
in interfaceServerChangeAfkTimeoutEvent
-
-