Skip to content

Updated ThreadChannel#isLocked and ThreadChannelManager#setLocked #2815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ default boolean isJoined()
/**
* Whether this thread is locked or not.
*
* <p>Locked threads cannot have new messages posted to them, or members join or leave them.
* Threads can only be locked and unlocked by moderators.
* <p>Locked threads make its members unable to post new messages unless they are moderators. Actions such as react to messages, leave, get removed and get invited to the thread remain unaffected.
* <br>Threads can only be locked and unlocked by moderators.
*
*
* @return true if this thread is locked, false otherwise.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ public interface ThreadChannelManager extends ChannelManager<ThreadChannel, Thre
/**
* Sets the locked state of this ThreadChannel.
*
* <p>This is the equivalent of archiving as a moderator.
* <p> Locking will prevent any new messages from being sent in the thread except by moderators.
* Actions such as react to messages, leave, get removed and get invited to the thread are still possible.
* <p>Locking a thread will not archive it.
*
*
* @param locked
* The new locked state for the selected {@link ThreadChannel}
Expand Down