1.0.4 • Published 3 years ago
disc_hooks v1.0.4
First npm module so it isn't the best / most efficient. Just used to send embeds/messages to discord webhooks
Example:
const webhook = require("disc_hooks");
const wh = new webhook.Webhook({
webhook: "webhook url",
username: "sesh",
avatar_url: "url",
});
const embed = new webhook.Embed();
embed.addField("name", "value");
embed.setTitle("title");
embed.setDescription("desc");
embed.setThumbnail("thumb");
wh.send(embed);