1.0.1 • Published 10 months ago
discord-prepare v1.0.1
Discord Parser
Parses your message before sending.
require("discord-prepare");
client.on("messageCreate", (msg) => {
msg.channel.prepare("helloworld", {
content: "Hello World!",
embeds: [
{
title: "Title 1",
description: "Description",
},
],
});
});
client.on("prepareCreate", (prepare) => {
let newOptions = prepare.options;
if (prepare.id === "helloworld") {
newOptions.embeds[0].description = "Description 1";
prepare.send(newOptions);
}
});