Interface ISlowmodeChannelManager<T extends ISlowmodeChannel,M extends ISlowmodeChannelManager<T,M>>
- Type Parameters:
T- The concreteISlowmodeChanneltypeM- 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.
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction
MAX_REASON_LENGTHFields inherited from interface net.dv8tion.jda.api.managers.channel.ChannelManager
APPLIED_TAGS, ARCHIVED, AUTO_ARCHIVE_DURATION, AVAILABLE_TAGS, BITRATE, DEFAULT_LAYOUT, DEFAULT_REACTION, DEFAULT_SORT_ORDER, DEFAULT_THREAD_SLOWMODE, HIDE_MEDIA_DOWNLOAD_OPTIONS, INVITEABLE, LOCKED, NAME, NSFW, PARENT, PERMISSION, PINNED, POSITION, REGION, REQUIRE_TAG, SLOWMODE, TOPIC, TYPE, USERLIMIT -
Method Summary
Modifier and TypeMethodDescriptionsetSlowmode(int slowmode) Sets the slowmode of the selected channel.Methods inherited from interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction
reasonMethods inherited from interface net.dv8tion.jda.api.managers.channel.ChannelManager
getChannel, getGuild, reset, reset, setNameMethods inherited from interface net.dv8tion.jda.api.managers.Manager
deadline, reset, setCheck, timeoutMethods inherited from interface net.dv8tion.jda.api.requests.RestAction
addCheck, and, and, complete, complete, completeAfter, delay, delay, delay, delay, flatMap, flatMap, getCheck, getJDA, map, mapToResult, onErrorFlatMap, onErrorFlatMap, onErrorMap, onErrorMap, onSuccess, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter, zip
-
Method Details
-
setSlowmode
Sets the slowmode of the selected channel.
Provide0to disable slowmode.A channel slowmode must not be negative nor greater than
ISlowmodeChannel.MAX_SLOWMODE!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.- Parameters:
slowmode- The new slowmode- Returns:
- ChannelManager for chaining convenience
- Throws:
IllegalArgumentException- If the provided slowmode is negative or greater than 21600- See Also:
-