Skip to main content

Module moderation

Module moderation 

Source
Expand description

Moderation authority: who may remove whose message (CORD-04 §3/§5).

Functions§

can_hide
May actor_hex remove a message authored by author_hex? The actor needs MANAGE_MESSAGES and a strict outrank; the owner is supreme and is never a valid target, so owner-protection falls out of the algebra with no carve-out.
can_hide_in_channel
can_hide in one Channel: MANAGE_MESSAGES is overwritable, so it’s resolved there (CORD-04 §8), while the outrank stays server-wide.
is_owner_or_admin
Whether member_hex is the owner or holds an admin grant: the bar for @everyone. A lookup failure answers false.
owner_hex
The community’s proven owner as lowercase hex (self-certified by the community id).