Interface IPositionableChannelManager<T extends IPositionableChannel,M extends IPositionableChannelManager<T,M>>

Type Parameters:
T - The channel type
M - 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.
  • Method Details

    • setPosition

      @Nonnull @CheckReturnValue M setPosition(int position)
      Sets the position of the selected GuildChannel.

      To modify multiple channels you should use Guild.modifyTextChannelPositions() instead! This is not the same as looping through channels and using this to update positions!

      Parameters:
      position - The new position for the selected GuildChannel
      Returns:
      ChannelManager for chaining convenience