Class ServerTextChannelUpdater

    • Constructor Detail

      • ServerTextChannelUpdater

        public ServerTextChannelUpdater​(ServerTextChannel channel)
        Creates a new server text channel updater.
        Parameters:
        channel - The channel to update.
    • Method Detail

      • setTopic

        public ServerTextChannelUpdater setTopic​(java.lang.String topic)
        Queues the topic to be updated.
        Parameters:
        topic - The new topic of the channel.
        Returns:
        The current instance in order to chain call methods.
      • setNsfwFlag

        public ServerTextChannelUpdater setNsfwFlag​(boolean nsfw)
        Queues the nsfw to be updated.
        Parameters:
        nsfw - The new nsfw flag of the channel.
        Returns:
        The current instance in order to chain call methods.
      • setCategory

        public ServerTextChannelUpdater setCategory​(ChannelCategory category)
        Queues the category to be updated.
        Parameters:
        category - The new category of the channel.
        Returns:
        The current instance in order to chain call methods.
      • removeCategory

        public ServerTextChannelUpdater removeCategory()
        Queues the category to be removed.
        Returns:
        The current instance in order to chain call methods.
      • setSlowmodeDelayInSeconds

        public ServerTextChannelUpdater setSlowmodeDelayInSeconds​(int delay)
        Set the delay for slowmode.
        Parameters:
        delay - The delay in seconds.
        Returns:
        The current instance in order to chain call methods.
      • unsetSlowmode

        public ServerTextChannelUpdater unsetSlowmode()
        Unset the slowmode.
        Returns:
        The current instance in order to chain call methods.