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 allBaseGuildMessageChannels.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:
BaseGuildMessageChannel.getManager()
-
-
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MsetNSFW(boolean nsfw)Sets the nsfw flag of the selectedTextChannelorNewsChannel.MsetTopic(String topic)Sets the topic of the selectedTextChannelorStageChannel.-
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 Detail
-
setTopic
@Nonnull @CheckReturnValue M setTopic(@Nullable String topic)
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
@Nonnull @CheckReturnValue M setNSFW(boolean nsfw)
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
-
-