Interface StandardGuildMessageChannelManager<T extends StandardGuildMessageChannel, M extends StandardGuildMessageChannelManager<T,M> >
- All Superinterfaces:
AuditableRestAction<Void>, ChannelManager<T,M>, IAgeRestrictedChannelManager<T, M>, ICategorizableChannelManager<T, M>, IPermissionContainerManager<T, M>, IPositionableChannelManager<T, M>, IThreadContainerManager<T, M>, Manager<M>, RestAction<Void>, StandardGuildChannelManager<T, M>
- All Known Subinterfaces:
NewsChannelManager, TextChannelManager
public interface StandardGuildMessageChannelManager<T extends StandardGuildMessageChannel, M extends StandardGuildMessageChannelManager<T,M>>
extends StandardGuildChannelManager<T,M>, IAgeRestrictedChannelManager<T,M>, IThreadContainerManager<T,M>
Manager providing functionality common for all
StandardGuildMessageChannels.
Example
manager.setName("help")
.setTopic("Java is to Javascript as ham is to hamster")
.queue();
manager.reset(ChannelManager.PARENT | ChannelManager.NAME)
.setTopic("nsfw-commits")
.setNSFW(true)
.queue();
- See Also:
-
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
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 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
-
setTopic
Sets the topic of the selectedchannel.- Parameters:
topic- The new topic for the selected channel,nullor empty String to reset- Returns:
- ChannelManager for chaining convenience
- Throws:
IllegalArgumentException- If the provided topic is greater than 1024 in length.
-