Interface ISlowmodeChannel
- All Superinterfaces:
Channel,Comparable<GuildChannel>,Formattable,GuildChannel,IMentionable,ISnowflake
- All Known Subinterfaces:
ForumChannel,TextChannel,ThreadChannel
Channels which support slowmode.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe maximum duration of slowmode in secondsFields inherited from interface net.dv8tion.jda.api.entities.channel.Channel
MAX_NAME_LENGTHFields inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChannel
JUMP_URL -
Method Summary
Methods inherited from interface net.dv8tion.jda.api.entities.channel.Channel
formatTo, getAsMention, getFlags, getJDA, getName, getTypeMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChannel
delete, getGuild, getJumpUrl, getManager, getPermissionContainerMethods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Field Details
-
MAX_SLOWMODE
static final int MAX_SLOWMODEThe maximum duration of slowmode in seconds- See Also:
-
-
Method Details
-
getSlowmode
int getSlowmode()The slowmode set for this channel.
If slowmode is set, this returns anintbetween 1 and 21600.
Otherwise, if no slowmode is set, this returns0.Note bots are unaffected by this.
HavingMESSAGE_MANAGEorMANAGE_CHANNELpermission also grants immunity to slowmode.Special case
ForumChannelsuse this to limit how many posts a user can create. The client refers to this as the post slowmode.- Returns:
- The slowmode for this channel, between 1 and 21600, or
0if no slowmode is set.
-