discord-xp-ts

Reconfigured existing decode-xp with typescript.

Usage no npm install needed!

<script type="module">
  import discordXpTs from 'https://cdn.skypack.dev/discord-xp-ts';
</script>

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.