ConstGet a list of controls for a discussion.
The parent component under which the controls menu will be displayed.
Delete the discussion after confirming with the user.
ProtectedGet controls for a discussion which are destructive (e.g. delete).
Hide a discussion.
ProtectedGet controls for a discussion pertaining to moderation (e.g. rename, lock).
Rename the discussion.
Open the reply composer for the discussion. A promise will be returned, which resolves when the composer opens successfully. If the user is not logged in, they will be prompted. If they don't have permission to reply, the promise will be rejected.
Whether or not to scroll down to the last post if the discussion is being viewed.
Whether or not to force a reload of the composer component, even if it is already open for this discussion.
Restore a discussion.
ProtectedGet controls for a discussion pertaining to the current user (e.g. reply, follow).
The parent component under which the controls menu will be displayed.
The
DiscussionControlsutility constructs a list of buttons for a discussion which perform actions on it.