1.1.2 • Published 1 year ago

ls_bots.js v1.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago