Interface IPositionableChannelManager<T extends IPositionableChannel, M extends IPositionableChannelManager<T,M>>
- Type Parameters:
T- The channel typeM- The manager type
- All Superinterfaces:
AuditableRestAction<Void>, ChannelManager<T,M>, Manager<M>, RestAction<Void>
- All Known Subinterfaces:
AudioChannelManager<T,M>, CategoryManager, ForumChannelManager, ICategorizableChannelManager<T, M>, MediaChannelManager, NewsChannelManager, StageChannelManager, StandardGuildChannelManager<T, M>, StandardGuildMessageChannelManager<T, M>, TextChannelManager, VoiceChannelManager
public interface IPositionableChannelManager<T extends IPositionableChannel, M extends IPositionableChannelManager<T,M>>
extends ChannelManager<T,M>
Manager abstraction to modify the position of a
positionable channel.-
Field Summary
Fields inherited from interface AuditableRestAction
MAX_REASON_LENGTHFields inherited from interface 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
Modifier and TypeMethodDescriptionsetPosition(int position) Sets the position of the selectedGuildChannel.Methods inherited from interface AuditableRestAction
reasonMethods inherited from interface ChannelManager
getChannel, getGuild, reset, reset, setNameMethods inherited from interface 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
-
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
-