addXp
Adds XP to 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 add | ✅ | None |
emitEvent | Boolean | If the levelUp event should be emitted | ❌ | True |
metadata | Any | Metadata to be sent with levelUp or levelDown events | ❌ | null |