Skip to main content

Module members

Module members 

Source
Expand description

Member and membership checks (permissions §4.3, §4.5, §4.6; specification §8.3, §8.9). The required bit of each command is checked by the table first.

Functions§

approve
membership.approve. A Pending target has no roles, so no H2; but the approver must be able to assign every default role applied at approval (specification §8.9). Ending a Probation early needs H1 and H2 (permissions §4.6).
kick_or_ban
member.kick and member.ban: not self (use community.leave); H1; H2.
moderate_content
Deleting another member’s message or removing their reaction: H1 only, no H2 (§4.5).
nickname
member.update of a nickname: one’s own needs only CHANGE_NICKNAME (table); another’s needs H1 and H2.
reject
membership.reject: the target is Pending.
restore
membership.restore: not self; H1; H2; the target is Suspended.
suspend
membership.suspend: not self; H1; H2; the target is Probation or Active.
timeout
member.timeout (set or clear): H1; H2; never the owner; never a target holding ADMINISTRATOR; until ≤ now + 28 days.