BetterDiscordJS is a NPM package who will help you to make your bots better.
In this examples we are assuming that you added BetterDiscordJS as util
.
const util = require("betterdiscordjs");
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");
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.