setXP
Sets the XP of a user in a guild
Parameters
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
userID | String | Snowflake | The ID of the user | ✅ | None |
guildID | String | Snowflake | The ID of the guild | ✅ | None |
xp | Number | The amount of XP to set | ✅ | None |
emitEvent | Boolean | If the levelUp or levelDown event should be emitted | ❌ | True |
metadata | Any | Metadata to be sent with levelUp or levelDown events | ❌ | null |