Skip to content

liz3/embed-visualizer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 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',

  // Decides if the library has webhook support or not.
  // If not set to false and a info will be displayed
  webhook_support: true,

  // actual generator
  // If webhook mode is enabled and supported the list of provided embeds will be in the "embeds" property, otherwise the single embed will be in "embed"
  // data is just a javascript object that looks like this:
  // { "content": "message content...", "embed": { ... }, "embeds": [ { ... }, { ...}] }
  // isWebhook will (if webhook mode is supported) be a boolean indicating if the mode is set to webhook(true) or normal(false).
  // if theres no support, this param may be omited
  generateFrom(data, isWebhook) {
    ...
  },
};

About

discord embed visualization tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 51.8%
  • CSS 47.9%
  • HTML 0.3%