froot-wrapper
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

Froot Wrapper

Froot Wrapper is the official Node.js wrapper for Bots Para Discord.

Installation

$ npm i froot-wrapper

Usage

Start importing the package and then instantiate the client:

const froot = require('froot-wrapper')
const client = new froot.BPDClient()

// Or direct import 
const { BPDClient } = require('froot-wrapper')
const client = new BPDClient()

Retrieving a user

client.getUser("268526982222970880")
.then(response => console.log(response))
.catch(reason => console.log("Uh-oh! An error occurred:" + reason))

Retrieving a bot

client.getBot("464304679128530954")
.then(response => console.log(response))
.catch(reason => console.log("Uh-oh! An error occurred:" + reason))

Contribute

Clone the repository with $ git clone https://github.com/zuraaa-projects/froot-wrapper, make changes and then make a Pull Request. For support, join the support server, and for issues, open an issue.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i froot-wrapper

    Weekly Downloads

    0

    Version

    1.2.1

    License

    ISC

    Unpacked Size

    24.3 kB

    Total Files

    27

    Last publish

    Collaborators

    • mysteryms