getting started
Start using the npm package!
installing the package
$ npm i discord-util.jsconst util = require("discord-utils.js")
const canvas = util.Canvas
const random = util.random
const utils = util.Utils
//you can also use the quick method:
const { Canvas } = require("discord-utils.js")
const { random } = require("discord-utils.js")
const { Utils } = require("discord-utils.js")
// Now that you have it set up you can use it!
//for example:
let image = await random.cat()
let image = await Canvas.communist("avatarURL here")
// that is the async/await method ^
Canvas.communist("avatarURL here").then(img => {
//do stuff with the image now
})
random.cat().then(img => {
//do stuff with the image now
})
//that is the .then method ^list of Canvas methods:
list of random methods:
list of Utils methods:
Last updated