A Nodejs Discord API wrapper. This is a library that allows you to interact with Discord API to make discord bots
Nodejs 16.9.0 or higher is needed
npm install lgcord.js
Make a basic bot using lgcord.js
const { Client, INTENTS } = require("lgcord.js")
const client = new Client([
INTENTS.GUILDS, INTENTS.GUILD_MESSAGES, INTENTS.GUILD_MESSAGE_REACTIONS
])
client.on('ready', ready => {
console.log(`Logged in as ${ready.user.username}`);
});
client.login("bot token here");
- messageCreate reply to a message or get info a message sent/receieved by the bot
- messageDelete get info of a message when deleted
- messageUpdate get info of a message if it gets updated/edited
MORE EVENTS DOCS WILL BE ADDED
Embed Example:
const { DiscordEmbed } = require("lgcord.js")
let embed = new DiscordEmbed()
.setTitle("Hello World")
.setColor("Color")
.setDescription('Bot using lgcord.js')
.setFooter('Footer')
.setTimestamp()