Discord_Module_NPM is a easy and quick way of using discord webhooks with node.js. Even a child could use Discord_Module_NPM. Discord_Module_NPM has a simple source code and a simple installation. Easily import functions that can help you with your discord webhooks.
Use Discord_Module_NPM to quickly manage your discord webhooks within node.js.
Keep scrolling if you would like a front end development version!!
Discord_Module_FD is a easy and quick way of using discord webhooks within the web. Easily use discord webhooks within your website. Discord_Module_FD has a easy and simple to understand source code. Discord_Module_FD is easily modifiable.
Use Discord_Module_FD to quickly manage your discord webhooks within the web.
For more information go to discord_module_fd!!
Discord_Module_NPM and Discord_Module_FD are using the MIT License.
Please read the following down below:
MIT License
Copyright (c) 2024 TheMuslimPerson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
In order to add / install, discord_module_npm into your project you will require the following down below:
1: npm, 2: node.js
After getting the requirement's you will use npm to install discord_module_npm into your project. Run the following command down below to install discord_module_npm:
npm install discord_module_npm
After installing discord_module_npm you will be required to import the functions. Add the following code into your main file:
import * as DMN from "discord_module_npm";
For more information go to Import method's down below!
For more information go to discord_module_npm!!
SetToken(string)
Pretty simple to be honest you set the webhook API token for the module to use
SetMessage(string)
Again pretty simple you set the message you would like the module to send via webhook
SetName(string)
Once again very simple you set the name of the webhook. Not setting the name will result in the default name being used in discord. The one you set
SetImage(URL / IMG)
Simple you set the Image for your webhook. Not setting this will result in the default Image being used. The one you set within discord
SetEmbed(Array)
Again very simple you set the embed that you would like the module to send via webhook
Start_Request()
Again very simple you start the webhook request
SetLoop(Boolean)
Spam send's the webhook request every (X) second!!
SetLoop_delay(Number)
Set's the cooldown on loop's. The default is 1000 / 1 second
SetFor(Number)
Sends the request (X) amount of times!
SetFor_Delay(Number)
Set's the cooldown on the for loop's. The default is 0 / 0 seconds
WARNING: THIS FEATURE IS IN BETA AND MAY NOT WORK CORRECTLY OR HAVE THE REQUIRED OPTIONS OR FEATURES
SetBot_Online(Token)
Put's the discord bot online
CreateBot_command(File-Name, File-Content)
Creates a file within modules/functions/Bot/Bot_commands
DeleteBot_command(File-Name)
Delete's the (X) file within modules/functions/Bot/Bot_commands
import * as DNM from "discord_module_npm";
import {
function-1,
function-2,
function-3
} from "discord_module_npm";
There are many more way's to import these are just a few examples
// Import all from the module
import * as DMN from "discord_module_npm";
// Set the Token
DMN.SetToken(
"Webhook API Token"
);
// Set the settings you would like
DMN.SetMessage("Hello world");
DMN.SetName("Testing Module!!");
// Send the request
DMN.Start_Request();