Canvas
Documentation for Canvas function (used for image manipulation)
Example
const client = // your client
const addon = require("@pgamerx/djs-addon")
const image = await addon.canvas(message, {
toggle: true
method: "wanted"
image_1: message.author.displayAvatarURL({format: "png"})
})
const attachment = new Discord.MessageAttachment(image, "wanted.png");
Parameters Guide
Name
Type
Required
method
String
image_1
String
image_2
String
image_3
String
txt
String
toggle
Boolean
Available Methods
Method(s) in which only 1 image is required:
"affect", "beautiful", "wanted", "delete", "trigger", "facepalm", "blur", "hitler", "kiss", "jail", "invert", "jokeOverHead"
Method(s) in which 2 images are required:
"bed", "fuse" , "kiss", "slap", "spank"
Method(s) in which 3 images are required:
"distracted"
Method(s) in which only Text is required:
"changemymind"
Last updated
Was this helpful?