Filters
- Method: GET
- URL:
https://some-random-api.ml/canvas/:filter
- Required parameters:
- filter - The filter you want
- Required queries:
- avatar - Direct link to the image you want
- Example output:

List of valid endpoints
- greyscale
- invert
- brightness
- threshold
- sepia
- red
- green
- blue
- blurple
- pixelate
- blur
Code examples
const { MessageEmbed, MessageAttachment } = require('discord.js')
let link = `https://some-random-api.ml/canvas/greyscale/?avatar=${message.author.avatarURL({ format: 'png'})}`
// -------- Sending the image as an image attachment --------
//create a message attachment with the name of the file with discord.js built in attachment class.
let attachment = new MessageAttachment(link, 'greyscale.png');
message.channel.send(attachment); //send the attachment
// -------- Sending the image inside an embed --------
const attachment = new MessageAttachment(link, 'greyscale.png');
const embed = new MessageEmbed()
.setTitle(`Image Generated?`)
.attachFiles(attachment)
.setImage('attachment://greyscale.png')
message.channel.send(embed);