utildiscordjs
v1.1.0
Published
UtilDiscordJS is a NPM package who will help you to make your bots better.
Downloads
3
Readme
UtilDiscordJS
UtilDiscordJS is a NPM package who will help you to make your bots better.
Usage
In this examples we are assuming that you added UtilDiscordJS as util
.
const util = require("utildiscordjs");
Ship Image
let data = await util.shipImage("avatar 1", "avatar 2", 50);
Parameters
- Avatar of user 1.
- Avatar of user 2.
- Porcentage of love.
Additional data
- This method is async.
Returned Information
This will return a Buffer
, so you need to compress it with MessageAttachment.
new Discord.MessageAttachment(data, "hi.png");
Emojify
let data = util.emojify("text");
Parameters
- Text to emojify.
Additional data
- This method is not async.
Returned Information
This will return a unformatted text, but is ready to use in discord.
ChangeMyMind
let data = await util.changeMyMind("text");
Parameters
- Text to place in the picture.
Additional data
- This method is async.
Returned Information
This will return a Buffer
, so you need to compress it with MessageAttachment.
new Discord.MessageAttachment(data, "hi.png");