1.0.3 • Published 3 years ago
discord.js-easy v1.0.3
discord.js-easy
This is for discord bot beginners.
Required node version: 16.6
Discord.js version: 13
How to use
This is simple to use! This is a simple !test
command
const Discord = require("discord.js-easy")
const client = new Discord.Client("your-bot-token", {
intents: ["GUILDS", "GUILD_MESSAGES"]
})
const command = new Discord.Command({
name: "!test",
send: "Test complete."
})
command.on("execute", (m, c) => {
console.log(`Command ${c.name} ran with content ${m.content}`)
})
Wanna do cool stuff like changing roles and making channels?
Just use client
! You will need to use the discord.js
package for stuff like embeds. Otherwise, it's not needed.
const client = new Discord.Client("your-bot-token", {
intents: ["GUILDS", "GUILD_MESSAGES"]
})
client.on("messageCreate", msg => {
console.log(msg.content)
})
Need help or got any bugs/feature requests? Join the discord server!