UpdateEvent<TextChannel,java.lang.Integer>
public class TextChannelUpdateSlowmodeEvent extends GenericTextChannelUpdateEvent<java.lang.Integer>
TextChannel
's slowmode changed.
Can be used to detect when a TextChannel slowmode changes and get its previous value.
Identifier: slowmode
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
IDENTIFIER |
Constructor | Description |
---|---|
TextChannelUpdateSlowmodeEvent(JDA api,
long responseNumber,
TextChannel channel,
int oldSlowmode) |
Modifier and Type | Method | Description |
---|---|---|
int |
getNewSlowmode() |
The new slowmode.
|
int |
getOldSlowmode() |
The old slowmode.
|
getJDA, getResponseNumber
getChannel, getGuild
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEntityType
public static final java.lang.String IDENTIFIER
public TextChannelUpdateSlowmodeEvent(JDA api, long responseNumber, TextChannel channel, int oldSlowmode)