Skip to main content

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​

PropertyTypeOptionalDescription
_idstringβœ…MongoDB object ID (when using MongoDB)
guildstring❌The guild ID.
levelroleobject❌Object containing level and optional roles.
levelrole.levelnumber❌The level number.
levelrole.rolesArray<string>βœ…Array of role ID strings (may be omitted).
createdAtstringβœ…ISO timestamp when the document was created.
lastUpdatedstringβœ…ISO timestamp when the document was last updated.