Explore this module further in the Mover Registry: @sage/shared
Structs
Moderation
Table of User
s authorized to take moderator actions on a forum.
Constants
Represents that the moderator is the owner.Functions
assert_is_moderator
Aborts with EIsNotModerator
if the user is not a moderator or owner.
assert_is_owner
Aborts with EIsNotOwner
if the user is not the owner.
create
Creates a new Moderation
instance.
get_length
Get number of moderators and owners.
is_moderator
Returns true or false based on whether the address is a moderator.
is_owner
Returns true or false based on whether the address is the owner.
make_moderator
Adds the address as a moderator.
make_owner
Adds the address as the owner.
remove_moderator
Removes the address as a moderator. Aborts with EIsOwner
if attempting to remove the owner.