Interface IPositionableChannelManager<T extends IPositionableChannel,M extends IPositionableChannelManager<T,M>>
- All Superinterfaces:
AuditableRestAction<Void>
,ChannelManager<T,
,M> Manager<M>
,RestAction<Void>
- All Known Subinterfaces:
BaseGuildMessageChannelManager<T,
,M> CategoryManager
,NewsChannelManager
,StageChannelManager
,StoreChannelManager
,TextChannelManager
,VoiceChannelManager
public interface IPositionableChannelManager<T extends IPositionableChannel,M extends IPositionableChannelManager<T,M>>
extends ChannelManager<T,M>
-
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 TypeMethodDescriptionsetPosition
(int position) Sets the position of the selectedGuildChannel
.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.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
-
setPosition
Sets the position of the selectedGuildChannel
.To modify multiple channels you should use
Guild.
instead! This is not the same as looping through channels and using this to update positions!modifyTextChannelPositions()
- Parameters:
position
- The new position for the selectedGuildChannel
- Returns:
- ChannelManager for chaining convenience
-