メインコンテンツまでスキップ

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.