Interface ServerTextChannelChangeSlowmodeEvent
-
- All Superinterfaces:
ChannelEvent,Event,ServerChannelEvent,ServerEvent,ServerTextChannelEvent,TextChannelEvent
public interface ServerTextChannelChangeSlowmodeEvent extends ServerTextChannelEvent
An event signalling a change in the slowmode settings for a channel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetNewDelayInSeconds()Gets the new delay of the channel.intgetOldDelayInSeconds()Gets the old delay of the channel.-
Methods inherited from interface org.javacord.api.event.channel.server.ServerChannelEvent
getServer
-
Methods inherited from interface org.javacord.api.event.channel.server.text.ServerTextChannelEvent
getChannel
-
Methods inherited from interface org.javacord.api.event.channel.TextChannelEvent
getPrivateChannel, getServerTextChannel, getServerThreadChannel
-
-
-
-
Method Detail
-
getOldDelayInSeconds
int getOldDelayInSeconds()
Gets the old delay of the channel.A delay of 0 means that the channel has not been in slowmode before.
- Returns:
- The delay in seconds.
-
getNewDelayInSeconds
int getNewDelayInSeconds()
Gets the new delay of the channel.A delay of 0 means that the channel is no longer in slowmode.
- Returns:
- The delay in seconds.
-
-