This package has been deprecated

Author message:

This version is not compatible with the new API - use @discoin/scambio instead

discoin

1.1.1 • Public • Published

Discoin for NodeJS

const Discoin = require("discoin");
const discoin = new Discoin("token");
 
discoin.fetch().then(transactions => {
// Transactions = API return but parsed
});
 
discoin.request("1234567890", 100, "DTS").then(result => { // (user id in string, amount in integer, currency code in string)
// Result = API return but parsed
});
 
discoin.info("abcdefg").then(result => { // Look up a transaction. .info(receipt id in string)
// Result = API return but parsed
});
 
discoin.reverse("abcdefg").then(result => { // Refund a transaction (NOT FOR USERS). .reverse(receipt id in string)
// Result = API return but parsed
});

What is Discoin anyways?

Discoin is an universal currency exchange system between Discord bots. More info here.

/discoin/

    Package Sidebar

    Install

    npm i discoin

    Weekly Downloads

    1

    Version

    1.1.1

    License

    ISC

    Unpacked Size

    3.36 kB

    Total Files

    4

    Last publish

    Collaborators

    • austinhuang
    • pizzafox