Class ServerThreadChannelUpdater

    • Constructor Detail

      • ServerThreadChannelUpdater

        public ServerThreadChannelUpdater​(ServerThreadChannel thread)
        Creates a new server thread channel updater.
        Parameters:
        thread - The thread to update.
    • Method Detail

      • setArchivedFlag

        public ServerThreadChannelUpdater setArchivedFlag​(boolean archived)
        Queues the archived flag to be updated.
        Parameters:
        archived - The new archived flag of the thread.
        Returns:
        The current instance in order to chain call methods.
      • setAutoArchiveDuration

        public ServerThreadChannelUpdater setAutoArchiveDuration​(AutoArchiveDuration autoArchiveDuration)
        Queues the auto archive duration to be updated.
        Parameters:
        autoArchiveDuration - The new auto archive duration of the thread.
        Returns:
        The current instance in order to chain call methods.
      • setLockedFlag

        public ServerThreadChannelUpdater setLockedFlag​(boolean locked)
        Queues the locked flag to be updated.
        Parameters:
        locked - The new locked flag of the thread.
        Returns:
        The current instance in order to chain call methods.
      • setInvitableFlag

        public ServerThreadChannelUpdater setInvitableFlag​(boolean invitable)
        Queues the invitable flag to be updated. Only available for private threads.
        Parameters:
        invitable - The new invitable flag of the thread.
        Returns:
        The current instance in order to chain call methods.
      • setSlowmodeDelayInSeconds

        public ServerThreadChannelUpdater setSlowmodeDelayInSeconds​(int delay)
        Queues slowmode delay to be updated.
        Parameters:
        delay - The delay in seconds.
        Returns:
        The current instance in order to chain call methods.