Comprehensive community moderation tools including role management, enforcement actions, banning, and permission systems
social.plus Community Moderation provides comprehensive tools for managing community roles, permissions, and enforcement actions. This system ensures healthy community environments through role-based access control, permission management, and enforcement capabilities, allowing creators and administrators to maintain effective community governance.
Role Management
Add and remove roles from community members with flexible permissions
Enforcement Tools
Ban and unban users to maintain community standards
Permission System
Check user permissions for granular access control
Administrative Control
Complete moderation toolkit for community governance
Community creators are automatically assigned moderator roles. The last moderator cannot leave a community without transferring ownership or assigning another moderator.
The addRoles() function assigns existing roles to community members, providing flexible role-based access control. This function supports both default roles and custom roles configured in your community.
The removeRoles() function removes existing roles from community members. This function allows selective role removal while maintaining other assigned roles for the specified users.
addRoles and removeRoles do not create new roles but assign and remove existing roles from given users. You can add or remove default roles as well as custom roles.
Copy
Ask AI
do { let success = try await communityModeratiom.removeRoles(roles, userIds: userIds)} catch { // Handle error here}
The banMembers() function allows community creators and moderators to ban multiple members simultaneously. This provides an efficient way to enforce community rules and restrict access for users who violate community standards.
The unbanMembers() function removes bans from previously banned community members. This feature is useful when banned members have corrected their behavior and are ready to rejoin the community.
The hasPermission() method provides a convenient way to check user permissions within a community. Use this method to implement proper access control and conditional UI elements based on user capabilities.