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.
Document shapeβ
| 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. |