Class ChannelOrderActionImpl

All Implemented Interfaces:
RestAction<Void>, ChannelOrderAction, OrderAction<GuildChannel,ChannelOrderAction>
Direct Known Subclasses:
CategoryOrderActionImpl

public class ChannelOrderActionImpl extends OrderActionImpl<GuildChannel,ChannelOrderAction> implements ChannelOrderAction
  • Constructor Details

    • ChannelOrderActionImpl

      public ChannelOrderActionImpl(Guild guild, int bucket)
      Creates a new ChannelOrderAction instance
      Parameters:
      guild - The target Guild of which to order the channels defined by the specified type
      bucket - The sorting bucket
    • ChannelOrderActionImpl

      public ChannelOrderActionImpl(Guild guild, int bucket, Collection<? extends GuildChannel> channels)
      Creates a new ChannelOrderAction instance using the provided Guild, as well as the provided list of Channels.
      Parameters:
      guild - The target Guild of which to order the channels defined by the specified type
      bucket - The sorting bucket
      channels - The Channels to order, all of which are on the same Guild specified, and all of which are of the same generic type of GuildChannel corresponding to the the ChannelType specified.
      Throws:
      IllegalArgumentException - If the channels are null, an empty collection, or any of them do not have the same ChannelType as the one provided.
  • Method Details