Class ChannelOrderAction<T extends Channel>

    • Constructor Detail

      • ChannelOrderAction

        public ChannelOrderAction​(Guild guild,
                                  ChannelType type)
        Creates a new ChannelOrderAction instance
        Parameters:
        guild - The target Guild of which to order the channels defined by the specified type
        type - The ChannelType corresponding to the generic type of Channel which defines the type of channel that will be ordered.
        Throws:
        java.lang.IllegalArgumentException - If one of the specified Guild has no channels of the ChannelType.
      • ChannelOrderAction

        public ChannelOrderAction​(Guild guild,
                                  ChannelType type,
                                  java.util.Collection<T> 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
        type - The ChannelType corresponding to the generic type of Channel which defines the type of channel that will be ordered.
        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 Channel corresponding to the the ChannelType specified.
        Throws:
        java.lang.IllegalArgumentException - If the channels are null, an empty collection, or any of them do not have the same ChannelType as the one provided.