webhook.js v1.0.5
webhook.js
A simple JavaScript module used for POST requests to a Discord channel.
The Module Dependencies used:
request- A simplified HTTP client.
Required files for webhook.js:
package.json- Holds the metadata relevant to the project.app.js- Main application functionality.
How To Use
In order to run webhook.js, you will need to have npm and node installed. These are instructions on how to obtain and run the application:
# Clone this repository
git clone https://github.com/Ciaxur/webhook.js
# Install dependencies
npm install
# Run the app
npm startNote: As of the current version of this module, you will need to hard-code in multiple variables for the Webhook to post.
npm Commands
Simple npm commands to run the application easier:
# Run the app
npm startWebhook Class
Javascript class mini-documentation:
// Webhook Class Initation Requirements
let webhook = new Webhook(url, username, msg, ttl, avatar_url);
// Initiating the Webhook Request
webhook.initRequest();More information about the Webhook Class can be found in the Documentation file.
More information about the JSON Form for excecuting can be found in Discord's Webhook Documentation.
Contribution
If you are willing to contribute to the project, please make sure to check out the available links below.
License
Licensed under the MIT License.