😃
discord-utils.js
  • getting started
  • Discord Server
Powered by GitBook
On this page
  • installing the package
  • list of Canvas methods:
  • list of random methods:
  • list of Utils methods:

Was this helpful?

getting started

Start using the npm package!

installing the package

Before using the package you need to install it by using the command in your terminal, the command is below:

$ npm i discord-util.js

If you find any bugs feel free to report it in our discord server

Once you have installed the package start by adding a piece of code to your file:

const 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:

  • communist("imageURL")

  • gun("imageURL")

  • grab("imageURL")

  • jokeOverHead("imageURL")

  • like("imageURL")

  • dislike("imageURL")

  • wasted("imageURL")

  • bed("imageURL1", "imageURL2")

  • beautiful("imageURL")

  • delete("imageURL")

  • magik("imageURL", "level")

  • rip("imageURL")

  • simp("imageURL")

  • spank("imageURL1", "imageURL2")

  • panik("panik message 1", "kalm message", "panik message 2")

  • hitler("imageURL")

  • spongebobTimecard("text")

  • hearts("imageURL")

  • glitch("imageURL)

  • truth("text")

  • drake("top text", "bottom text")

  • trigger("imageURL")

  • twoButtons("button text 1", "button text 2")

  • rainbow("imageURL")

  • jail("imageURL")

  • tuxedoPooh("normal Text", "tuxedo text")

  • achievement("text")

  • amiajoke("imageURL")

  • bad("imageURL")

  • calling("text")

  • captcha("text")

  • challenge("text")

  • changemymind("text")

  • clyde("text")

  • didyoumean("top text", "bottom text")

  • discordMessage("message", "color hex code", "username", "imageURL")

  • facepalm("imageURL")

  • facts("text")

  • invert("imageURL")

  • salty("imageURL")

  • shame("imageURL")

  • ship("imageURL1", "imageURL2")

  • shit("imageURL")

  • what("imageURL")

list of random methods:

  • cat()

  • dog()

  • bird()

list of Utils methods:

  • emojify("text")

  • ordinal(number)

  • formatNumber(number)

  • reverse("text")

  • djsDocs("query")

made with ❤️ and effort!

NextDiscord Server

Last updated 4 years ago

Was this helpful?