Interface BaseGuildMessageChannelManager<T extends BaseGuildMessageChannel,M extends BaseGuildMessageChannelManager<T,M>>
- All Superinterfaces:
AuditableRestAction<Void>,ChannelManager<T,,M> ICategorizableChannelManager<T,,M> IPermissionContainerManager<T,,M> IPositionableChannelManager<T,,M> Manager<M>,RestAction<Void>
- All Known Subinterfaces:
NewsChannelManager,TextChannelManager
public interface BaseGuildMessageChannelManager<T extends BaseGuildMessageChannel,M extends BaseGuildMessageChannelManager<T,M>>
extends IPermissionContainerManager<T,M>, IPositionableChannelManager<T,M>, ICategorizableChannelManager<T,M>
Manager providing functionality common for all
BaseGuildMessageChannels.
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.managers.channel.ChannelManager
ARCHIVED, AUTO_ARCHIVE_DURATION, BITRATE, INVITEABLE, LOCKED, NAME, NSFW, PARENT, PERMISSION, POSITION, REGION, SLOWMODE, TOPIC, TYPE, USERLIMIT -
Method Summary
Modifier and TypeMethodDescriptionsetNSFW(boolean nsfw) Sets the nsfw flag of the selectedTextChannelorNewsChannel.Sets the topic of the selectedTextChannelorStageChannel.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.channel.attribute.ICategorizableChannelManager
setParent, sync, syncMethods inherited from interface net.dv8tion.jda.api.managers.channel.attribute.IPermissionContainerManager
clearOverridesAdded, clearOverridesRemoved, putMemberPermissionOverride, putMemberPermissionOverride, putPermissionOverride, putPermissionOverride, putRolePermissionOverride, putRolePermissionOverride, removePermissionOverride, removePermissionOverrideMethods inherited from interface net.dv8tion.jda.api.managers.channel.attribute.IPositionableChannelManager
setPositionMethods 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, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter, zip
-
Method Details
-
setTopic
Sets the topic of the selectedTextChannelorStageChannel.A channel topic must not be more than
1024characters long!
This is only available toTextChannels- Parameters:
topic- The new topic for the selected channel,nullor empty String to reset- Returns:
- ChannelManager for chaining convenience
- Throws:
UnsupportedOperationException- If the selectedGuildChannel's type is notTEXTIllegalArgumentException- If the provided topic is greater than1024in length
-
setNSFW
Sets the nsfw flag of the selectedTextChannelorNewsChannel.- Parameters:
nsfw- The new nsfw flag for the selectedTextChannel,- Returns:
- ChannelManager for chaining convenience
- Throws:
IllegalStateException- If the selectedGuildChannel's type is notTEXT
-