embedbuilder/builder.config.js

47 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

2023-06-27 11:40:07 +05:00
/**
* This script file will (or atleast should) run before the main script file runs.
* This file should contain stuff like options, global variables (etc.) to be used by the main script.
*/
// Options
// URL options can override the options below.
// Options set through the menu can override both until the page is refreshed.
options = {
2023-06-27 13:09:41 +05:00
username: "Discord Bot",
avatar: "https://cdn.discordapp.com/embed/avatars/1.png",
verified: false,
noUser: false,
data: null,
guiTabs: ["author", "description"],
useJsonEditor: false,
reverseColumns: false,
allowPlaceholders: false,
autoUpdateURL: false,
autoParams: false,
hideEditor: false,
hidePreview: false,
hideMenu: false,
single: false,
noMultiEmbedsOption: false,
sourceOption: false, // Display link to source code in menu.
2023-06-27 11:40:07 +05:00
}
// Default JSON object
// json = {
// content: "Hello world",
// embed: {
// title: "A title",
// description: "A description",
// }
// }
2023-06-27 13:09:41 +05:00
// Write any code under the "DOMContentLoaded" event to run after the page has loaded.
addEventListener("DOMContentLoaded", () => {
// console.log("Hello 👋");
2023-06-27 11:40:07 +05:00
// Remove the colour picker
2023-06-27 13:09:41 +05:00
// document.querySelector(".colors").remove()
2023-06-27 11:40:07 +05:00
})