Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Fuechschen/eris-embed-builder

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published