// Simple Webhook Request: const axios = require("axios").default; const WEBHOOK_ID = ""; const WEBHOOK_TOKEN = ""; // ?wait=true allows us to get the actual message object. axios({ method: "POST", url: `https://discord.com/api/webhooks/${WEBHOOK_ID}/${WEBHOOK_TOKEN}?wait=true`, data: { content: "Test" } }).then(({ data }) => { console.log({ data }); // do something... }).catch(console.error);{ "name": "test webhook", "type": 1, "channel_id": "199737254929760256", "token": "3d89bb7572e0fb30d8128367b3b1b44fecd1726de135cbe28a41f8b2f777c372ba2939e72279b94526ff5d1bd4358d65cf11", "avatar": null, "guild_id": "199737254929760256", "id": "223704706495545344", "application_id": null, "user": { "username": "test", "discriminator": "7479", "id": "190320984123768832", "avatar": "b004ec1740a63ca06ae2e14c5cee11f3", "public_flags": 131328 } }