eris-embed-builder v0.1.2
eris-embed-builder
eris-embed-builder is a small library for creating RichEmbeds on Discord. It's designed to extend Eris, however it will work with every node-js library you can imagine (in other words: which supports sending raw embeds).
Installation
npm i -S eris-embed-builder
Usage
If you are using Eris, it's as easy as it can get. Just put require('eris-embed-builder) somewhere in your code before you create your client (new Eris() or new Eris.CommandClient()).
This will expose a new method on every channel (channel.createEmbed()) and the client (client.createEmbed(channelID)). These Methods will return a new EmbedBuilder on which you can insert your data. To finally send the embed, call .send() on the EmbedBuilder.
You can find the full API-documentation here.
If you are not using eris, you can still use the normal embedbuilder. After constructing the embed, you get the sendable embed throug .sendable