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 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
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.channel.attribute.IAgeRestrictedChannelManager
setNSFW
Methods inherited from interface net.dv8tion.jda.api.managers.channel.attribute.ICategorizableChannelManager
setParent, sync, sync
Methods inherited from interface net.dv8tion.jda.api.managers.channel.attribute.IPermissionContainerManager
clearOverridesAdded, clearOverridesRemoved, putMemberPermissionOverride, putMemberPermissionOverride, putPermissionOverride, putPermissionOverride, putRolePermissionOverride, putRolePermissionOverride, removePermissionOverride, removePermissionOverride
Methods inherited from interface net.dv8tion.jda.api.managers.channel.attribute.IPositionableChannelManager
setPosition
Methods inherited from interface net.dv8tion.jda.api.managers.channel.attribute.IThreadContainerManager
setDefaultThreadSlowmode
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
-
setTopic
Sets the topic of the selectedchannel
.- Parameters:
topic
- The new topic for the selected channel,null
or empty String to reset- Returns:
- ChannelManager for chaining convenience
- Throws:
IllegalArgumentException
- If the provided topic is greater than 1024 in length.
-