Interface ForumChannelManager
- All Superinterfaces:
AuditableRestAction<Void>, ChannelManager<ForumChannel, ForumChannelManager>, IAgeRestrictedChannelManager<ForumChannel, ForumChannelManager>, ICategorizableChannelManager<ForumChannel, ForumChannelManager>, IPermissionContainerManager<ForumChannel, ForumChannelManager>, IPositionableChannelManager<ForumChannel, ForumChannelManager>, IPostContainerManager<ForumChannel, ForumChannelManager>, ISlowmodeChannelManager<ForumChannel, ForumChannelManager>, IThreadContainerManager<ForumChannel, ForumChannelManager>, Manager<ForumChannelManager>, RestAction<Void>, StandardGuildChannelManager<ForumChannel, ForumChannelManager>
public interface ForumChannelManager
extends StandardGuildChannelManager<ForumChannel, ForumChannelManager>, IPostContainerManager<ForumChannel, ForumChannelManager>, IAgeRestrictedChannelManager<ForumChannel, ForumChannelManager>, ISlowmodeChannelManager<ForumChannel, ForumChannelManager>
Manager providing functionality to modify a
ForumChannel.
Example
manager.setName("gamer-forum")
.setSlowmode(10)
.setTopic("Welcome to the gamer forum!")
.queue();
manager.reset(ChannelManager.NSFW | ChannelManager.NAME)
.setName("gamer-forum-nsfw")
.setNSFW(true)
.queue();
-
Field Summary
Fields inherited from interface AuditableRestAction
MAX_REASON_LENGTHFields inherited from interface 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 TypeMethodDescriptionsetDefaultLayout(ForumChannel.Layout layout) Sets the default layout of the selectedForumChannel.Methods inherited from interface AuditableRestAction
reasonMethods inherited from interface ChannelManager
getChannel, getGuild, reset, reset, setNameMethods inherited from interface IAgeRestrictedChannelManager
setNSFWMethods inherited from interface ICategorizableChannelManager
setParent, sync, syncMethods inherited from interface IPermissionContainerManager
clearOverridesAdded, clearOverridesRemoved, putMemberPermissionOverride, putMemberPermissionOverride, putPermissionOverride, putPermissionOverride, putRolePermissionOverride, putRolePermissionOverride, removePermissionOverride, removePermissionOverrideMethods inherited from interface IPositionableChannelManager
setPositionMethods inherited from interface IPostContainerManager
setAvailableTags, setDefaultReaction, setDefaultSortOrder, setTagRequired, setTopicMethods inherited from interface ISlowmodeChannelManager
setSlowmodeMethods inherited from interface IThreadContainerManager
setDefaultThreadSlowmodeMethods inherited from interface 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
-
setDefaultLayout
@Nonnull @CheckReturnValue ForumChannelManager setDefaultLayout(@Nonnull ForumChannel.Layout layout) Sets the default layout of the selectedForumChannel.- Parameters:
layout- The new default layout.- Returns:
- ChannelManager for chaining convenience
- See Also:
-