0.1.2 • Published 7 years ago

eris-embed-builder v0.1.2

Weekly downloads
14
License
MIT
Repository
github
Last release
7 years ago

eris-embed-builder

NPM version npm dependencies Status Build Status

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

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago