Interface
Options used when creating/updating level-role documents.
collection — "simply-xp-levelroles"
Must be simply-xp-levelroles when using the data properties below.
data — object
| Property | Type | Optional | Description |
|---|---|---|---|
guild | string | ❌ | The guild ID. |
levelrole | object | ✅ | Object with level and optional roles. |
levelrole.level | number | ✅ | The level number (may be null when omitted). |
levelrole.roles | Array<string> | ✅ | Array of role ID strings (may be null/omitted). |