discord-xp-ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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.

/discord-xp-ts/

    Package Sidebar

    Install

    npm i discord-xp-ts

    Weekly Downloads

    3

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    22 kB

    Total Files

    13

    Last publish

    Collaborators

    • hands8142