1.0.1 • Published 4 years ago
discord-webhook-messages v1.0.1
Discord webhook messages!
Send plain messages
const discordwh = require("discord-webhook-messages");
const webhook = new discordwh.Webhook("WEBHOOK URL");
webhook.sendMessage("This is a plain message!");
Send embed messages
const discordwh = require("discord-webhook-messages");
const webhook = new discordwh.Webhook("WEBHOOK URL");
webhook.sendMessage("This is a plain message!", {
embeds: [
{
title: "This is an embed!",
color: 0x383838,
description: "This is the embed description!",
fields: [
{
name: "Field name",
value: "field value",
inline: true // or false
}
]
}
]
});