Skip to content
nin0dev edited this page Oct 21, 2024 · 1 revision

Roles are used to determine permissions and name tags.

They are expressed as a bitfield. Here is a list of roles in a JS constant:

const Role = {
    Guest: 1 << 0,
    User: 1 << 1,
    Bot: 1 << 2,
    System: 1 << 3,
    Mod: 1 << 4,
    Admin: 1 << 5
};

Guest (1 << 0)

These users do not have persistent user IDs. They are capped to 300 characters.

User (1 << 1)

Normal users.

Bot (1 << 2)

These users are bots.

System (1 << 3)

These are system messages sent by the nin0chat backend.

Mod (1 << 4)

These users will have moderation permissions over the backend.

Admin (1 << 5)

Reserved to nin0, this role has extra powers over staff members.

Clone this wiki locally