Skip to content

discord embed rendering tool

License

Notifications You must be signed in to change notification settings

nikbrandt/embed-renderer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Embed Visualizer

demo gif

Code snippet generators

The general structure for them looks like this:

export default {
  // for displaying on the <select> dropdown
  name: 'Cool Discord Lib (Cool Programming Language)',

  // for highlight.js
  // see https://highlightjs.readthedocs.io/en/latest/css-classes-reference.html#language-names-and-aliases
  language: 'coolprogramminglanguage',

  // actual generator
  // data is just a javascript object that looks like this:
  // { "content": "message content...", "embed": { ... } }
  generateFrom(data) {
    ...
  },
};

Currently, we don't really take in account "webhook mode" since most libraries don't really support that directly. If in the future most of them end up supporting it, we can start passing that down to the generateFrom function, so that it can emit something else.

About

discord embed rendering tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 50.4%
  • CSS 49.3%
  • HTML 0.3%