discord-xp-ts
v1.0.5
Published
Reconfigured existing decode-xp with typescript.
Downloads
3
Maintainers
Readme
Discord-XP-TS
Reconfigured existing decode-xp with typescript.
Changelog
- 31 December 2020 (v1.0.0) I brought 1.1.7 version of decode-xp.
Bugs, Glitches and Issues
If you encounter any of those fell free to open an issue in our github repository.
Download
You can download it from npm:
npm i discord-xp-ts
Setting Up
First things first, we include the module into the project. javascript:
const { default: Levels } = require("discord-xp-ts");
typescript:
import Levels from "discord-xp-ts";
After that, you need to provide a valid mongo database url, and set it. You can do so by:
Levels.setURL("mongodb://..."); // You only need to do this ONCE per process.
Please refer to decode-xp for the rest of the setup methods.