Creating embeds

Embeds are stylish, they're here to keep everything's organized in a single block.

Let's get started.

Example of embed layout:

const embed = {
  "title": "Introducing TouchGuild",
  "description": "A powerful Node.js __library__ for **interfacing** with Guilded \n Let's get started.",
  "url": "https://github.com/DinographicPixels/TouchGuild",
  "color": 6118369,
  "timestamp": "2022-04-12T22:14:36.737Z",
  "footer": {
    "icon_url": "https://img.guildedcdn.com/ContentMediaGenericFiles/312797c11c3f01d6b14f5719529a76ab-Full.webp?w=1080&h=1080",
    "text": "Made with love."
  },
  "thumbnail": {
    "url": "https://img.guildedcdn.com/ContentMediaGenericFiles/312797c11c3f01d6b14f5719529a76ab-Full.webp?w=1080&h=1080"
  },
  "image": {
    "url": "https://camo.githubusercontent.com/739ac07c7fb99a25939e49d97e67d6a0f0968437ea15fc175f818dd737917f85/68747470733a2f2f63646e2e676c697463682e676c6f62616c2f62633638333133652d366162622d343838632d613165332d6536643130383137633262642f746f7563686775696c642d637261646975732e706e673f763d31363635333131323732323437"
  },
  "author": {
    "name": "DinographicPixels",
    "url": "https://www.guilded.gg/DinographicPixels",
    "icon_url": "https://www.guilded.gg/asset/Default/Gil-md.png"
  },
  "fields": [
    {
      "name": "**Powerful**",
      "value": "yeah!"
    },
    {
      "name": "Make an incredible app",
      "value": "use TouchGuild, now!",
      "inline": true
    }
  ]
}

You're ready to create embeds!

Now, let's send it.

client.rest.channels.createMessage("channelID", { embeds: [embed] })

Last updated