Interface IThreadContainerManager<T extends IThreadContainer,M extends IThreadContainerManager<T,M>>
- Type Parameters:
T
- The channel typeM
- The manager type
- All Superinterfaces:
AuditableRestAction<Void>
,ChannelManager<T,
,M> Manager<M>
,RestAction<Void>
- All Known Subinterfaces:
ForumChannelManager
,IPostContainerManager<T,
,M> MediaChannelManager
,NewsChannelManager
,StandardGuildMessageChannelManager<T,
,M> TextChannelManager
public interface IThreadContainerManager<T extends IThreadContainer,M extends IThreadContainerManager<T,M>>
extends ChannelManager<T,M>
Manager abstraction to configure settings related to thread channel containers, such as
ForumChannel
.-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction
MAX_REASON_LENGTH
Fields 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 TypeMethodDescriptionsetDefaultThreadSlowmode
(int slowmode) Sets the default thread slowmode of the selected channel.Methods inherited from interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction
reason
Methods inherited from interface net.dv8tion.jda.api.managers.channel.ChannelManager
getChannel, getGuild, reset, reset, setName
Methods inherited from interface net.dv8tion.jda.api.managers.Manager
deadline, reset, setCheck, timeout
Methods 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
-
setDefaultThreadSlowmode
Sets the default thread slowmode of the selected channel. This is applied to newly created threads by default.
Provide0
to disable slowmode.A channel default thread slowmode must not be negative nor greater than
ISlowmodeChannel.MAX_SLOWMODE
!Note: Bots are unaffected by this.
HavingMESSAGE_MANAGE
orMANAGE_CHANNEL
permission also grants immunity to slowmode.- Parameters:
slowmode
- The new default thread slowmode (in seconds)- Returns:
- ChannelManager for chaining convenience
- Throws:
IllegalArgumentException
- If the provided slowmode is negative or greater than 21600- See Also:
-