How do I use global xp instead of per-guild xp? #53
-
How do I use global xp instead of per-guild xp? Like, it should be common across all servers |
Beta Was this translation helpful? Give feedback.
Answered by
Myst82015
Nov 8, 2021
Replies: 2 comments 1 reply
-
Just set guildId hardcoded like 1
|
Beta Was this translation helpful? Give feedback.
0 replies
-
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. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Myst82015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
I prefer 'global' since it actually makes more sense then just 1.