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>
  • 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