Class ServerTextChannelChangeSlowmodeEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.server.ServerEventImpl
-
- org.javacord.core.event.channel.server.ServerChannelEventImpl
-
- org.javacord.core.event.channel.server.text.ServerTextChannelEventImpl
-
- org.javacord.core.event.channel.server.text.ServerTextChannelChangeSlowmodeEventImpl
-
- All Implemented Interfaces:
ChannelEvent
,ServerChannelEvent
,ServerTextChannelChangeSlowmodeEvent
,ServerTextChannelEvent
,TextChannelEvent
,Event
,ServerEvent
public class ServerTextChannelChangeSlowmodeEventImpl extends ServerTextChannelEventImpl implements ServerTextChannelChangeSlowmodeEvent
The implementation for the ServerTextChannelChangeSlowmodeEvent.
-
-
Constructor Summary
Constructors Constructor Description ServerTextChannelChangeSlowmodeEventImpl(ServerTextChannel channel, int oldDelay, int newDelay)
Creates a new server text channel change slowmode event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNewDelayInSeconds()
int
getOldDelayInSeconds()
-
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
-
Methods inherited from interface org.javacord.api.event.channel.server.text.ServerTextChannelEvent
getChannel
-
Methods inherited from class org.javacord.core.event.channel.server.text.ServerTextChannelEventImpl
getChannel
-
Methods inherited from interface org.javacord.api.event.channel.TextChannelEvent
getGroupChannel, getPrivateChannel, getServerTextChannel
-
-
-
-
Constructor Detail
-
ServerTextChannelChangeSlowmodeEventImpl
public ServerTextChannelChangeSlowmodeEventImpl(ServerTextChannel channel, int oldDelay, int newDelay)
Creates a new server text channel change slowmode event.- Parameters:
channel
- The channel of the event.oldDelay
- The old delay of the channel.newDelay
- The new delay of the channel.
-
-
Method Detail
-
getOldDelayInSeconds
public int getOldDelayInSeconds()
- Specified by:
getOldDelayInSeconds
in interfaceServerTextChannelChangeSlowmodeEvent
-
getNewDelayInSeconds
public int getNewDelayInSeconds()
- Specified by:
getNewDelayInSeconds
in interfaceServerTextChannelChangeSlowmodeEvent
-
-