UNPKG

discord-xp-ts

Version:

Reconfigured existing decode-xp with typescript.

30 lines (26 loc) 914 B
# Discord-XP-TS Reconfigured existing [decode-xp]("https://github.com/MrAugu/discord-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 <a href="https://github.com/hands8142/discord-xp-ts/issues">github repository</a>. # Download You can download it from npm: ```cli npm i discord-xp-ts ``` # Setting Up First things first, we include the module into the project. javascript: ```js const { default: Levels } = require("discord-xp-ts"); ``` typescript: ```ts 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: ```js Levels.setURL("mongodb://..."); // You only need to do this ONCE per process. ``` Please refer to decode-xp for the rest of the setup methods.