// 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
  }
}

Javascript相关代码片段

Array item Add remove react state

how to check if a data type is int javascript

Write a React Component from Scratch

import image dynamically react

Sorting arrays within an array in js

javascript retry Fetch

email.js in react

TypeError: window.matchMedia is not a function

wget post json

phonepe payment gateway pg node js

ssn input react

json string to object jQuery

Easy Data fetching in React

disable rule jsx-a11y/label-has-for

react-native-confirmation-code-field

reset select2 in bootstrap modal

nodejs export and import

mui datagrid rows per page

objs.sort() js

full calendar angular

replace all empty lines with regex javascript

create json jquery

mysql docker ER_NOT_SUPPORTED_AUTH_MODE

switch case in js

hide button after click react

edit xlsx file on nodejs without losing styling

chart js tooltip not showing

how to do hello world in python

javascript standard deviation

enter button submit from react

loop in formarray

bridging react native and native

gsap splittext alternative

jenkins nodejs

expo 50 nav bar

load npm to browser

moment-timezone

currency formatter js

image to text react native

Nodejs image uploader

jquery check if in viewport

parallax effect download js

jsx Nextjs, dashboard, kazi, zobaidul kazi

expect function to throw error vite/jest

react toastify promise

make.com arrays

react flex

javascript object.fromentries

format json without quotes

wordpress page keeps reloading

nodelist javascript

angular refresh page after submit

unminify js

jquery class contains text

ajax to controller not mapping list of ints

pdf.js shortcode

js length of string

ng build prod not working

or truth table

js or symbol

Git - Ignore node_modules folder everywhere

.net and javascript date functions format

js element in viewport

object detection in react native

remove repeated elements in array javascript

useTransission react

custom cursor for react

react get blue outline on routing Links

get rid of blue button effect on react links

nextjs remote url image

react router v6 basic code

lua table to json online

download video from url javascript

jquery set max length input

JS not selecting the element

react native clock

shadcn toast not showing

express folder structure

audio element

javascript set display of elem to block