Skip to content

How do I use global xp instead of per-guild xp? #53

Locked Answered by Myst82015
TechPro424 asked this question in Q&A
Discussion options

You must be logged in to vote

So basically you're right.

The package does not validate the guild id meaning you can provide anyhing from a number to a string.

E.g:

Levels.appendXp(message.author.id, 1, xpAmount);
Levels.appendXp(message.author.id, "1234", xpAmount);
Levels.appendXp(message.author.id, 'global', xpAmount);

I prefer 'global' since it actually makes more sense then just 1.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@TechPro424
Comment options

Answer selected by Myst82015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants