0.2.3 • Published 3 years ago
@ruebinary/embeds v0.2.3
📝 embeds
small JavaScript module that builds Discord embed objects
embeds includes a validation layer for embed properties, so you never send malformed objects. also includes two functions to build your embed for production.
import DiscordEmbed from '@ruebinary/embeds'
const yourembed = new DiscordEmbed()
.addTitle('Embed title')
.addDescription('Embed description')
console.log(yourembed)
Details
const yourembed = new DiscordEmbed()
.addTitle('Embed title')
.addDescription('Embed description')
console.log(buildObject(yourembed))
const yourembed = new DiscordEmbed()
.addTitle('Embed title')
.addDescription('Embed description')
console.log(buildJSON(yourembed))
Roadmap
- Finish readme
copyright (c) 2022 @ruebinary
embeds is released under isc license