Skip to content
On this page

Type

This type describes a level-role document returned by the database. In the current implementation the level/roles are nested under a levelrole object.

Property Type Optional Description
_id string ✅ MongoDB object ID (when using MongoDB)
guild string ❌ The guild ID.
levelrole object ❌ Object containing level and optional roles.
levelrole.level number ❌ The level number.
levelrole.roles Array<string> ✅ Array of role ID strings (may be omitted).
createdAt string ✅ ISO timestamp when the document was created.
lastUpdated string ✅ ISO timestamp when the document was last updated.