Interface ISlowmodeChannel

All Superinterfaces:
Channel, Comparable<GuildChannel>, Formattable, GuildChannel, IMentionable, ISnowflake
All Known Subinterfaces:
ForumChannel, TextChannel, ThreadChannel

public interface ISlowmodeChannel extends GuildChannel
Channels which support slowmode.
  • Field Details

    • MAX_SLOWMODE

      static final int MAX_SLOWMODE
      The 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 an int between 1 and 21600.
      Otherwise, if no slowmode is set, this returns 0.

      Note bots are unaffected by this.
      Having MESSAGE_MANAGE or MANAGE_CHANNEL permission also grants immunity to slowmode.

      Special case
      ForumChannels use 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 0 if no slowmode is set.