1.0.0 • Published 2 years ago
hookscord.js v1.0.0
Hookscord.js is an npm package that allows you to send webhooks to Discord (same functions as hookscord app) is compatible with discord.js
Installation
npm i hookscord.js
Simple Example
const Hookscord = require("hookscord.js")
const client = new Hookscord.Webhook();
client.login("WebhookURL") //login in the webhook
client.channel.send({ content: "Hello World!" })
Other Examples
const Hookscord = require("hookscord.js")
const client = new Hookscord.Webhook();
const file = new Hookscord.File();
client.login("WebhookURL") //login in the webhook
client.channel.send({ content: "Hello World!" })
file.create("Untitled", "PATH") //create a ".hok" file in the selected path
file.json.make("Untitled", "PATH")
file.env.make("Untitled", "PATH")
Use with Discord.js
const Hookscord = require("hookscord.js")
const client = new Hookscord.Webhook();
const Discord = require("discord.js")
client.login("WebhookURL") //login in the webhook
let embed = new Discord.MessageEmbed()
.setTitle("Hello World!")
client.channel.send({ content: "Hello World!", embeds: [embed] }) //cant send only embed, require content
1.0.0
2 years ago