Interface ISlowmodeChannelManager<T extends ISlowmodeChannel, M extends ISlowmodeChannelManager<T,M>>

Type Parameters:
T - The concrete ISlowmodeChannel type
M - The concrete manager type
All Superinterfaces:
AuditableRestAction<Void>, ChannelManager<T,M>, Manager<M>, RestAction<Void>
All Known Subinterfaces:
ForumChannelManager, MediaChannelManager, StageChannelManager, TextChannelManager, ThreadChannelManager, VoiceChannelManager

public interface ISlowmodeChannelManager<T extends ISlowmodeChannel, M extends ISlowmodeChannelManager<T,M>> extends ChannelManager<T,M>
Manager which supports setting slowmode of a channel.
  • Method Details

    • setSlowmode

      @Nonnull @CheckReturnValue M setSlowmode(int slowmode)
      Sets the slowmode of the selected channel.
      Provide 0 to disable slowmode.

      A channel slowmode must not be negative nor greater than ISlowmodeChannel.MAX_SLOWMODE!

      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.

      Parameters:
      slowmode - The new slowmode
      Returns:
      ChannelManager for chaining convenience
      Throws:
      IllegalArgumentException - If the provided slowmode is negative or greater than 21600
      See Also: