> For the complete documentation index, see [llms.txt](https://l3g3nd-0001.gitbook.io/discord-utils-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://l3g3nd-0001.gitbook.io/discord-utils-js/master.md).

# getting started

## 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
```

{% hint style="info" %}
&#x20;If you find any bugs feel free to report it in our discord server
{% endhint %}

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

```javascript
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!
