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 selectedTextChannel
orNewsChannel
.Sets the topic of the selectedTextChannel
orStageChannel
.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.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.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, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter, zip
-
Method Details
-
setTopic
Sets the topic of the selectedTextChannel
orStageChannel
.A channel topic must not be more than
1024
characters long!
This is only available toTextChannels
- Parameters:
topic
- The new topic for the selected channel,null
or empty String to reset- Returns:
- ChannelManager for chaining convenience
- Throws:
UnsupportedOperationException
- If the selectedGuildChannel
's type is notTEXT
IllegalArgumentException
- If the provided topic is greater than1024
in length
-
setNSFW
Sets the nsfw flag of the selectedTextChannel
orNewsChannel
.- Parameters:
nsfw
- The new nsfw flag for the selectedTextChannel
,- Returns:
- ChannelManager for chaining convenience
- Throws:
IllegalStateException
- If the selectedGuildChannel
's type is notTEXT
-