A Discord embed builder with both a GUI and JSON editor to use with Discord bots, webhooks, and other applications.
Find a file
2021-08-20 21:49:46 +01:00
assets Merge branch 'master' of https://github.com/Glitchii/embedbuilder 2021-08-20 21:49:46 +01:00
.gitignore Use 24h system, update fonts, support 'editor' and other params, and fix bugs with embed fields, etc. 2021-08-20 21:48:33 +01:00
index.html Use 24h system, update fonts, support 'editor' and other params, and fix bugs with embed fields, etc. 2021-08-20 21:48:33 +01:00
LICENSE Create LICENSE 2020-12-15 18:11:52 +00:00
README.md Use 24h system, update fonts, support 'editor' and other params, and fix bugs with embed fields, etc. 2021-08-20 21:48:33 +01:00

An embed visualizer

Visualize embed or message content from JSON input or provided GUI editor.

This can be used for discord bot embed commands. It can also be intergreted into your Discord bot's website.

Aside the JSON editor, it also includes a GUI editor which converts to JSON for simplicity.

GUI image JSON image

Supported URL Parameters

Editor param (/?editor=json)

The GUI editor is used by default. If 'editor' parameter is set with the editor set to "json", the website will use the JSON editor by default instead when the website loads. Setting the value to anything else other than 'json' will be ignored.

Example URL: https://glitchii.github.io/embedbuilder/?editor=json

Data param (/?data=...)

A data param is used to specify the dafault json data to be used when the website loads. Note that value of the data param should be URL encoded first, then base64 encoded last. Calling the jsonToBase64 fuction in /assets/script.js does that and returns the encoded JSON data.

Example URL:
https://glitchii.github.io/embedbuilder/?data=JTdCJTIyZW1iZWQlMjIlM0ElN0IlMjJ0aXRsZSUyMiUzQSUyMkxvcmVtJTIwaXBzdW0lMjIlMkMlMjJkZXNjcmlwdGlvbiUyMiUzQSUyMkRvbG9yJTIwc2l0JTIwYW1ldC4uLiUyMiUyQyUyMmNvbG9yJTIyJTNBMzkxMjklN0QlN0Q=

Other parameters

Parameter   Description
---------   -----------
username=   Used to set the deafult name of the bot.  
avatar=     If a valid URL is given, that will be the avatar or icon of the bot.  
verified=   Displays a verified badge on the bot tag when set to true.  
reversed=   Reverse the preview and editors position.  
guitabs=    Specify what gui tabs to display comma seperated.
            Example: `guitabs=author` or `guitabs=image,footer`

Example URL with all parameters:

https://glitchii.github.io/embedbuilder/?username=Troy&verified=true&reversed=true&guitabs=image,footer&avatar=https://cdn.discordapp.com/avatars/663074487335649292/576eb5f13519b9da10ba7807bdd83fab.webp?size=128

Intergretting into your website

You are free to use this in your website. Intergretting into your websites allows sending the embed to Discord with a few changes, and using 'formmaters' eg. '{ server_name }' or '{ user_name }' etc. A not so bad downside would be that you'd probably have to keep up with fixes and updates.
If all you want is to have an embed builder in your website with no additional features and maybe using your own bot name and avatar, etc., you could iframe https://glitchii.github.io/embedbuilder into your website with a few of the parameters above if needed instead.



You can look into the project boards if you want to see what is being worked on or want to contribute.

Used at https://troybot.xyz/embed
To Do | Discussions