1.0.1 • Published 11 months ago
@pedrozmz/easy-discord.js v1.0.1
Easy-Discord.js
An easy way to program discord bots using JavaScript!
How to create client?
This is easy! Look at the code
index.js:
const easy = require('@pedrozmz/easy-discord.js')
const token = "Your_Token"
const client = new easy.ClientCreate()
client.on('ready', () => {
console.log('Bot is ready!')
})
client.login(token)
Embeds
const easy = require('@pedrozmz/easy-discord.js')
const token = "Your_Token"
const client = new easy.ClientCreate()
client.on('ready', () => {
console.log('Bot is ready!')
})
client.on('messageCreate', async (message) => {
if (message.content === "Embed") {
const embed = new Embed()
.author("Author of Embed", "https://www.npmjs.com/package/@pedrozmz/easy-discord.js", "https://i.ibb.co/QFPFDN5/easy-discord-js.png")
.color("Random")
.description("This is a Description of Embed")
.fieldAdd("Name in Field", "Value of Field", false /* Boolean value that defines whether it is inline or not */)
.image("https://cdn.pixabay.com/photo/2017/03/23/08/33/banner-2167644_960_720.png")
.thumbnail("https://i.ibb.co/QFPFDN5/easy-discord-js.png")
.timestamp(new Date())
.build();
}
})
client.login(token)
docs coming soon.