Endpoint Information

Output Example

List of valid endpoints

Code examples

const { MessageEmbed, MessageAttachment } = require('discord.js')

let link = `${{ 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');; //send the attachment

// -------- Sending the image inside an embed --------
const attachment = new MessageAttachment(link, 'greyscale.png');
  const embed = new MessageEmbed()
    .setTitle(`Image Generated?`)