LevelRoleResult
Sur cette page
Type
Ce contenu n’est pas encore disponible dans votre langue.
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
Section titled “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. |