A package to easily setup a discord embed This version only supports discord.js v12 Version 2.0.0 will support discord.js v13
🏠 Homepage
npm i embedcord
Please note that none of the embed inputs are required if you want to skip one just leave an empty string ''
const discord = require('discord.js')
const client = new discord.Client()
const newEmbed = require('embedcord')
const prefix = '!'
client.once('ready', () => {
console.log('Ready')
})
client.on('message', message => {
if(!message.content.startsWith(prefix) || message.author.bot) return
if(message.content.startsWith(`${prefix}embed`)) {
const embed = newEmbed('Your title here', 'Your hex code here', 'Your description')
message.channel.send(embed)
}
})
client.login('your-token-here')
👤 Aidan White
- Github: @Aidan-The-Dev
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2022 Aidan White.
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator