文件名称:discord-webhook-node:允许通过Discord的Webhook API轻松发送Webhook
文件大小:21KB
文件格式:ZIP
更新时间:2024-05-22 03:18:55
JavaScript
不和谐Webhook发送 执照 安装 npm install discord-webhook-node或yarn add discord-webhook-node 例子 基本用途 const { Webhook } = require ( 'discord-webhook-node' ) ; const hook = new Webhook ( "YOUR WEBHOOK URL" ) ; const IMAGE_URL = 'https://homepages.cae.wisc.edu/~ece533/images/airplane.png' ; hook . setUsername ( 'Discord Webhook Node Name' ) ; hook . setAvatar ( IMAGE_URL ) ; hook . send ( "Hello there!" ) ;
【文件预览】:
discord-webhook-node-master
----package.json(680B)
----test()
--------test.js(2KB)
----LICENSE(1KB)
----package-lock.json(40KB)
----src()
--------index.js(161B)
--------api()
--------index.mjs(206B)
--------classes()
--------utils()
----index.d.ts(2KB)
----.gitignore(29B)
----README.md(6KB)