eris-embed-builder
v0.1.2
Published
[![NPM version](https://img.shields.io/npm/v/eris-embed-builder.svg?style=flat-square)](https://npmjs.com/package/eris-embed-builder) [![npm](https://img.shields.io/npm/l/eris-embed-builder.svg?style=flat-square)]() [![dependencies Status](https://david-d
Downloads
30
Readme
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