web.discord
v0.0.12
Published
Links ==== [CLI](https://npmjs.com/package/web.discord#cli) <br> [Releases](https://npmjs.com/package/web.discord#releases) <br> [File Usage](https://npmjs.com/package/web.discord#file-usage) <br> [Introduction](https://npmjs.com/package/web.discord#
Downloads
21
Readme
Links
CLI Releases File Usage Introduction Introduction
web.Discord is a simple webhook utility, currently under development. This allows you to create a webhook in one file, and send it in another.
Releases
README Updates | V0.0.3 | V0.0.6 | V0.0.7 | V0.0.8 | V0.0.9 | V0.0.10 | V0.0.11 | V0.0.12 | Code Updates Bugs | V0.0.4 Bugs: -m or --message tag taking only one argument. | | V0.0.5 CLI Update, should hopefully fix the bug. | | V0.0.6 CLI Update, successfully fixed the bug, however There is new usage, please read CLI documentation by clicking the hyper link. | V0.0.1 Public release V0.0.2 CLI release V.0.04 CLI Update Bugs: -m or --message tag taking only one argument. V.0.0.5 CLI Update, should hopefully fix the bug V0.0.6 CLI Update, successfully fixed the bug, however There is new usage, please read CLI documentation by clicking the hyper link. This also comes with a README update
CLI
Here are some examples.
send -m "My message here!" -t WebhookToken -i WebhookID
Here is another
send --message "My message here" --token WebhookToken --id WebhookID
The CLI help menu
Usage: -t <token> -i <id> -m <message> -p <preset>
Options:
--help Show help [boolean]
--version Show version number [boolean]
-t, --token Webhook Token [string] [required]
-i, --id Webhook ID [string] [required]
-m, --message Webhook Message [string] [required]
-p, --preset Webhook Preset [string]
File Usage
File1.js
const web = require("web.discord")
web.initWebhook("ID","TOKEN")
File2.js
const web = require("web.discord")
web.send("message")