https://github.com/ryanfarber/discord-webhook
a tool to send data to discord webhooks
https://github.com/ryanfarber/discord-webhook
Last synced: 11 months ago
JSON representation
a tool to send data to discord webhooks
- Host: GitHub
- URL: https://github.com/ryanfarber/discord-webhook
- Owner: ryanfarber
- Created: 2020-08-27T01:18:45.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-04T03:10:03.000Z (almost 4 years ago)
- Last Synced: 2025-06-03T02:49:58.931Z (about 1 year ago)
- Language: JavaScript
- Size: 32.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# discord-webhook
send messages via discord webhooks
## usage
```javascript
const DiscordHook = require("@ryanforever/discord-webhook");
let hook = new DiscordHook({
name: "webhook test",
url: https://discord.com/api/webhooks/...,
avatar: "https://media.tenor.com/images/1c4edacf0c4f3057c26f5fa130822970/tenor.png"
})
hook.send("hello world")
// send message from default webhook name
hook.send("hello world", {
name: "new webhook name",
avatar: "http://www.overrideavatar.com/image.jpg"
})
// enter a string as the second argument to override the default name
```