const ls = require("ls_bots.js")
// Read Config
const config = ls.readConfig()
// Create Discord Logs
ls.createLog({
interaction: interaction,
channelId: "1158703951659671552",
title: "Embed Title",
description: `Embed Description`,
});
// Event / Command Handler
client.login("yourToken").then(() => {
client.commands = new Collection();
ls.loadCommands(client);
ls.loadEvents(client);
});
// Embed Values
const embed = new EmbedBuilder()
addEmbedValue(embed, "setTitle", "title");
addEmbedValue(embed, "setDescription", "description");
addEmbedValue(embed, "setColor", "color");
addEmbedValue(embed, "setImage", "img");
addEmbedValue(embed, "setThumbnail", "thumbnail");
addEmbedValue(embed, "setAuthor", author, authorURL);
addEmbedValue(embed, "setFooter", footer, footerURL);
// User Permissions
const rolePermissions = ["1043989494094905388"];
const permissions = await checkPermissions({
interaction: interaction,
permissions: rolePermissions,
});
if (!permissions) {
return;
}
ls_bots.js
1.1.2 • Public • Published Package Sidebar
Install
npm i ls_bots.js
Weekly Downloads
0
Version
1.1.2
License
ISC
Unpacked Size
54.9 kB
Total Files
7