ls_bots.js
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

Example

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;
}

Readme

Keywords

Package Sidebar

Install

npm i ls_bots.js

Weekly Downloads

0

Version

1.0.8

License

ISC

Unpacked Size

54.7 kB

Total Files

7

Last publish

Collaborators

  • lasse.