Send a Discord message

const messageParts = [];

quest.items.forEach((item) => {
  messageParts.push(`**${item.name}**\n${item.data?.text}\n`)
});

const request = {
    "content": `**${quest.submittedBy.displayName}** just completed **${quest.name}**:\n\n>>> ${messageParts.join("\n")}`
  }

const response = await fetch("https://discord.com/api/channels/1016652320169283584/messages", {
    method: "POST",
    body: JSON.stringify(request),
    headers: {
      authorization: "Bot xxxx",
      "content-type": "application/json"
    }
});