From 7600f24bf070ed936992ba28a6bd00ae5f5f2ab3 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Fri, 23 Jan 2026 23:46:52 +0300 Subject: [PATCH 001/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 573 +++++++++++++++------------ 1 file changed, 310 insertions(+), 263 deletions(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index 06161e54cc6..a4fe66391f0 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -1,272 +1,319 @@ -const DiscordThemes = { - light: { - reactionColor: "#F2F3F5", - messageTextColor: "#313338", - background: "#FFF", - }, - dark: { - reactionColor: "#202226", - messageTextColor: "#C6C7CC", - background: "#1C1D22", - }, - redmoon: { - reactionColor: "#4e0505", - background: "linear-gradient(-25deg, #240000, #740606)", - }, - nightsapphire: { - reactionColor: "#180052", - background: "linear-gradient(-25deg, #000124, #260674)", - }, - emeraldearth: { - reactionColor: "#006d3f", - background: "linear-gradient(-25deg, #0c2400, #067446)", - }, - nightviolet: { - reactionColor: "#390085", - background: "linear-gradient(-25deg, #1d0024, #350674)", - }, - oldwood: { - reactionColor: "#714400", - background: "linear-gradient(-25deg, #240f00, #744806)", - }, - azuresky: { - reactionColor: "#007162", - background: "linear-gradient(-25deg, #001a24, #067465)", - }, - cherryvelvety: { - reactionColor: "#710049", - background: "linear-gradient(-25deg, #240017, #74064d)", - }, - forestdepth: { - reactionColor: "#616d00", - background: "linear-gradient(-25deg, #222400, #687406)", - }, - nightchestnut: { - reactionColor: "#4e0505", - background: "linear-gradient(-25deg, #190024, #740606)", - }, - mosscovered: { - reactionColor: "#4b6d11", - background: "linear-gradient(-25deg, #1c2400, #4c7406)", - }, - deepruby: { - reactionColor: "#74066e", - background: "linear-gradient(-25deg, #1f0024, #74066e)", - }, - fernvalley: { - reactionColor: "#1e6d00", - background: "linear-gradient(-25deg, #00240a, #247406)", - }, - forestshadows: { - reactionColor: "#086b00", - background: "linear-gradient(-25deg, #000624, #086700 , #0a7f01)", - }, - autumnblaze: { - reactionColor: "#742006", - background: "linear-gradient(-25deg, #240800, #742006)", - }, -}; - -function setDiscordTheme(colorId) { - const discordMessages = document.getElementsByTagName("discord-messages"); - - const styles = { - reactionColor: "#131318", - messageTextColor: "#DDDEE1", - background: "#000", - ...(DiscordThemes[colorId] || {}), - }; - - // Callback function to execute when mutations are observed - const callback = (mutationList, observer) => { - for (const mutation of mutationList) { - if ( - mutation.type === "attributes" && - mutation.attributeName === "class" - ) { - const reactions = - document.getElementsByTagName("discord-reaction"); - const messageColors = document.querySelectorAll( - ".discord-message .discord-message-markup" - ); - - const botToApp = - document.querySelectorAll('.discord-application-tag'); - - if (styles.background) - mutation.target.style.background = styles.background; - mutation.target.style.backgroundColor = styles.exampleColor; - for (const reaction of reactions) { - // change the div which is the actual reaction - reaction.children.item(0).style.backgroundColor = - styles.reactionColor; - } - messageColors.forEach((text) => { - text.style.color = styles.messageTextColor; - }); - - botToApp.forEach(tag => { - if (tag.textContent.includes("Bot")) { - tag.textContent = tag.textContent.replace("Bot", "App"); - tag.setAttribute("aria-label", "Verified App"); - } - }); - - // Changes "00/00/0000" to "Today at 00:00". - const timestamps = document.querySelectorAll( - ".discord-message-timestamp" - ); - timestamps.forEach((timestamp) => { - var time = new Date().getTime(); - var minuteExample = new Date().getMinutes(); - var hourExample = new Date().getHours(); - const formattedMinute = - minuteExample < 10 - ? `0${minuteExample}` - : minuteExample; - const formattedHour = - hourExample < 10 ? `0${hourExample}` : hourExample; - const formattedTime = `Today at ${formattedHour}:${formattedMinute}`; - timestamp.textContent = formattedTime; - }); - } - } - }; - - for (message of discordMessages) { - const mutObv = new MutationObserver(callback); - mutObv.observe(message, { attributes: true }); - } -} - -function applySettings() { - const snowflakes = document.querySelector(".snowflakes"); - - let data; - - try { - data = JSON.parse(localStorage.getItem("json")); - } catch {} - - const defaultData = { - "discord-example-theme": "dark", - "text-size": "60%", - "language": "en", - "text-hg": "none", - "text-font": "Open Sans, sans-serif", - "effects": "hidden", - "code-hg": { - defaultTextHighlight: { - color: 4288341353, - style: 0, - }, - fallbackHighlight: { - color: 4285791231, - style: 0, - }, - bracketHighlight: { - color: 4294921292, - style: 1, - }, - semicolonHighlight: { - color: 4294920266, - style: 1, - }, - functionsHighlights: { - $nomention: { - color: 4294932473, - style: 0, - }, - $catch: { - color: 4288905212, - style: 0, - }, - $else: { - color: 4288905212, - style: 0, - }, - $elseif: { - color: 4288905212, - style: 0, - }, - $endif: { - color: 4288905212, - style: 0, - }, - $endtry: { - color: 4288905212, - style: 0, - }, - $error: { - color: 4288905212, - style: 0, - }, - $if: { - color: 4288905212, - style: 0, - }, - $try: { - color: 4288905212, - style: 0, - }, - }, - }, - }; - - if (!data) localStorage.setItem("json", JSON.stringify(defaultData)); - data ??= defaultData; - - const html = document.querySelector("html"); - - html.style.fontFamily = data["text-font"]; - html.style.fontSize = data["text-size"]; - html.style.textShadow = data["text-hg"]; - - if (snowflakes) { - snowflakes.style.visibility = data["effects"]; - } - - document.querySelectorAll('.chapter > li.chapter-item').forEach(el => { - if (el.querySelector('div')) { - const text = el.querySelector('div').textContent.trim(); - if (text === 'Functions' || text === 'Premium') { - el.classList.add('functions-section'); - } - } - }); - - // Tools redirecting & ToS - -const currentPath = window.location.pathname; -const currentHref = window.location.href; - -if (currentPath.includes('/tools/')) { - const fileName = currentPath.split('/').pop(); - window.location.replace('https://bdfd-tool.github.io/bdfd-wiki/nightly/tools/' + fileName); -} -else if (currentPath.includes('/terms.html') || currentHref.includes('terms.html')) { - window.location.replace('https://botdesignerdiscord.com/tos'); -} -else { - const allLinks = document.querySelectorAll('a[href]'); +async function createAndUpdateLastEdit() { + try { + const response = await fetch( + 'https://api.github.com/repos/Rainb0wKey/bdfd-wiki/commits?path=src/bdscript/addButton.md&per_page=1' + ); + + if (!response.ok) return; - allLinks.forEach(link => { - const href = link.getAttribute('href'); + const commits = await response.json(); + + if (commits && commits.length > 0) { + const lastCommit = commits[0]; + const lastModified = new Date(lastCommit.commit.committer.date); + + const formattedDate = lastModified.toLocaleDateString('en-US', { + year: 'numeric', + month: 'short', + day: 'numeric' + }); + + const authorName = lastCommit.author ? + (lastCommit.author.login || lastCommit.commit.author.name) : + lastCommit.commit.author.name; + + const avatarUrl = lastCommit.author ? + lastCommit.author.avatar_url : + 'https://github.com/identicons/identicon.png'; + + const container = document.createElement('div'); + container.className = 'last_file_edit'; + + container.innerHTML = ` +
+ ${authorName} +
+ +
+ ${authorName} +
+
+
+ `; + + document.body.appendChild(container); + + const DiscordThemes = { + light: { + reactionColor: "#F2F3F5", + messageTextColor: "#313338", + background: "#FFF", + }, + dark: { + reactionColor: "#202226", + messageTextColor: "#C6C7CC", + background: "#1C1D22", + }, + redmoon: { + reactionColor: "#4e0505", + background: "linear-gradient(-25deg, #240000, #740606)", + }, + nightsapphire: { + reactionColor: "#180052", + background: "linear-gradient(-25deg, #000124, #260674)", + }, + emeraldearth: { + reactionColor: "#006d3f", + background: "linear-gradient(-25deg, #0c2400, #067446)", + }, + nightviolet: { + reactionColor: "#390085", + background: "linear-gradient(-25deg, #1d0024, #350674)", + }, + oldwood: { + reactionColor: "#714400", + background: "linear-gradient(-25deg, #240f00, #744806)", + }, + azuresky: { + reactionColor: "#007162", + background: "linear-gradient(-25deg, #001a24, #067465)", + }, + cherryvelvety: { + reactionColor: "#710049", + background: "linear-gradient(-25deg, #240017, #74064d)", + }, + forestdepth: { + reactionColor: "#616d00", + background: "linear-gradient(-25deg, #222400, #687406)", + }, + nightchestnut: { + reactionColor: "#4e0505", + background: "linear-gradient(-25deg, #190024, #740606)", + }, + mosscovered: { + reactionColor: "#4b6d11", + background: "linear-gradient(-25deg, #1c2400, #4c7406)", + }, + deepruby: { + reactionColor: "#74066e", + background: "linear-gradient(-25deg, #1f0024, #74066e)", + }, + fernvalley: { + reactionColor: "#1e6d00", + background: "linear-gradient(-25deg, #00240a, #247406)", + }, + forestshadows: { + reactionColor: "#086b00", + background: "linear-gradient(-25deg, #000624, #086700 , #0a7f01)", + }, + autumnblaze: { + reactionColor: "#742006", + background: "linear-gradient(-25deg, #240800, #742006)", + }, + }; + + function setDiscordTheme(colorId) { + const discordMessages = document.getElementsByTagName("discord-messages"); + + const styles = { + reactionColor: "#131318", + messageTextColor: "#DDDEE1", + background: "#000", + ...(DiscordThemes[colorId] || {}), + }; + + const callback = (mutationList, observer) => { + for (const mutation of mutationList) { + if ( + mutation.type === "attributes" && + mutation.attributeName === "class" + ) { + const reactions = + document.getElementsByTagName("discord-reaction"); + const messageColors = document.querySelectorAll( + ".discord-message .discord-message-markup" + ); + + const botToApp = + document.querySelectorAll('.discord-application-tag'); + + if (styles.background) + mutation.target.style.background = styles.background; + mutation.target.style.backgroundColor = styles.exampleColor; + for (const reaction of reactions) { + reaction.children.item(0).style.backgroundColor = + styles.reactionColor; + } + messageColors.forEach((text) => { + text.style.color = styles.messageTextColor; + }); + + botToApp.forEach(tag => { + if (tag.textContent.includes("Bot")) { + tag.textContent = tag.textContent.replace("Bot", "App"); + tag.setAttribute("aria-label", "Verified App"); + } + }); + + const timestamps = document.querySelectorAll( + ".discord-message-timestamp" + ); + timestamps.forEach((timestamp) => { + var time = new Date().getTime(); + var minuteExample = new Date().getMinutes(); + var hourExample = new Date().getHours(); + const formattedMinute = + minuteExample < 10 + ? `0${minuteExample}` + : minuteExample; + const formattedHour = + hourExample < 10 ? `0${hourExample}` : hourExample; + const formattedTime = `Today at ${formattedHour}:${formattedMinute}`; + timestamp.textContent = formattedTime; + }); + } + } + }; + + for (message of discordMessages) { + const mutObv = new MutationObserver(callback); + mutObv.observe(message, { attributes: true }); + } + } + + function applySettings() { + const snowflakes = document.querySelector(".snowflakes"); + + let data; + + try { + data = JSON.parse(localStorage.getItem("json")); + } catch {} + + const defaultData = { + "discord-example-theme": "dark", + "text-size": "60%", + "language": "en", + "text-hg": "none", + "text-font": "Open Sans, sans-serif", + "effects": "hidden", + "code-hg": { + defaultTextHighlight: { + color: 4288341353, + style: 0, + }, + fallbackHighlight: { + color: 4285791231, + style: 0, + }, + bracketHighlight: { + color: 4294921292, + style: 1, + }, + semicolonHighlight: { + color: 4294920266, + style: 1, + }, + functionsHighlights: { + $nomention: { + color: 4294932473, + style: 0, + }, + $catch: { + color: 4288905212, + style: 0, + }, + $else: { + color: 4288905212, + style: 0, + }, + $elseif: { + color: 4288905212, + style: 0, + }, + $endif: { + color: 4288905212, + style: 0, + }, + $endtry: { + color: 4288905212, + style: 0, + }, + $error: { + color: 4288905212, + style: 0, + }, + $if: { + color: 4288905212, + style: 0, + }, + $try: { + color: 4288905212, + style: 0, + }, + }, + }, + }; + + if (!data) localStorage.setItem("json", JSON.stringify(defaultData)); + data ??= defaultData; + + const html = document.querySelector("html"); + + html.style.fontFamily = data["text-font"]; + html.style.fontSize = data["text-size"]; + html.style.textShadow = data["text-hg"]; + + if (snowflakes) { + snowflakes.style.visibility = data["effects"]; + } + + document.querySelectorAll('.chapter > li.chapter-item').forEach(el => { + if (el.querySelector('div')) { + const text = el.querySelector('div').textContent.trim(); + if (text === 'Functions' || text === 'Premium') { + el.classList.add('functions-section'); + } + } + }); - if (href) { - if (href.indexOf('../tools/') === 0) { + const currentPath = window.location.pathname; + const currentHref = window.location.href; + + if (currentPath.includes('/tools/')) { + const fileName = currentPath.split('/').pop(); + window.location.replace('https://bdfd-tool.github.io/bdfd-wiki/nightly/tools/' + fileName); + } + else if (currentPath.includes('/terms.html') || currentHref.includes('terms.html')) { + window.location.replace('https://botdesignerdiscord.com/tos'); + } + else { + const allLinks = document.querySelectorAll('a[href]'); + + allLinks.forEach(link => { + const href = link.getAttribute('href'); + + if (href) { + if (href.indexOf('../tools/') === 0) { const newHref = 'https://bdfd-tool.github.io/bdfd-wiki/nightly/tools/' + href.substring(9); link.setAttribute('href', newHref); - } - - if (href.includes('terms.html')) { + } + + if (href.includes('terms.html')) { link.setAttribute('href', 'https://botdesignerdiscord.com/tos'); + } } + }); } - }); -} - - setDiscordTheme(data["discord-example-theme"]); + + setDiscordTheme(data["discord-example-theme"]); + } + + applySettings(); + } + } catch (error) {} } -applySettings(); +document.addEventListener('DOMContentLoaded', createAndUpdateLastEdit); From a9c3cf992afe8c729d765e8dc1bf31404519d966 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Fri, 23 Jan 2026 23:47:34 +0300 Subject: [PATCH 002/275] Update index.hbs --- src/theme/index.hbs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/theme/index.hbs b/src/theme/index.hbs index a9c967d19ab..612f3aecabc 100644 --- a/src/theme/index.hbs +++ b/src/theme/index.hbs @@ -250,6 +250,8 @@ +

Hello

+ {{#if live_reload_endpoint}} From 7f9119d16f42d7a37bdad5ef4de7133da22e87c2 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Fri, 23 Jan 2026 23:49:09 +0300 Subject: [PATCH 003/275] Update index.hbs --- src/theme/index.hbs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/theme/index.hbs b/src/theme/index.hbs index 612f3aecabc..a9c967d19ab 100644 --- a/src/theme/index.hbs +++ b/src/theme/index.hbs @@ -250,8 +250,6 @@ -

Hello

- {{#if live_reload_endpoint}} From a850c088213736b2a5adaa37c5a1af38c4aa7487 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Fri, 23 Jan 2026 23:49:38 +0300 Subject: [PATCH 004/275] Update chrome.css --- src/theme/css/chrome.css | 75 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 786e24a6261..02ce2d6a2b1 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -175,6 +175,81 @@ html { color: var(--text-primary); text-decoration: none; } + +.last_file_edit { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; + font-size: 13px; + color: #57606a; + margin: 20px 0; + padding: 15px; + border-top: 1px solid #eaecef; + background-color: #f6f8fa; + border-radius: 6px; +} + +.last_file_edit .edit-info { + display: flex; + align-items: center; + gap: 12px; + max-width: 400px; + margin: 0 auto; +} + +.last_file_edit .edit-avatar { + width: 36px; + height: 36px; + border-radius: 50%; + object-fit: cover; + border: 2px solid #ffffff; + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); + flex-shrink: 0; +} + +.last_file_edit .edit-details { + display: flex; + flex-direction: column; + line-height: 1.4; + flex-grow: 1; +} + +.last_file_edit .edit-date-line { + margin-bottom: 3px; +} + +.last_file_edit .edit-date { + color: #24292f; + font-weight: 600; + font-size: 14px; +} + +.last_file_edit .edit-author-line { + color: #57606a; +} + +.last_file_edit .edit-author { + font-size: 13px; +} + +@media (max-width: 768px) { + .last_file_edit { + margin: 15px 0; + padding: 12px; + font-size: 12px; + } + + .last_file_edit .edit-avatar { + width: 32px; + height: 32px; + } + + .last_file_edit .edit-date { + font-size: 13px; + } + + .last_file_edit .edit-author { + font-size: 12px; + } +} /* ===== Legacy Card Styles ===== */ .commandCard { From 96697e5ca2f3194c065a1c54e2d943d88c4f575c Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Fri, 23 Jan 2026 23:58:16 +0300 Subject: [PATCH 005/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 40 ++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index a4fe66391f0..a9c466e62dd 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -1,13 +1,43 @@ async function createAndUpdateLastEdit() { try { + const currentPath = window.location.pathname; + let pagePath = ''; + + if (currentPath.includes('/nightly/')) { + const nightlyIndex = currentPath.indexOf('/nightly/') + 8; + pagePath = currentPath.substring(nightlyIndex); + } else { + pagePath = currentPath.startsWith('/') ? currentPath.substring(1) : currentPath; + } + + if (!pagePath || pagePath === '' || pagePath === 'index.html') { + pagePath = 'index.md'; + } else { + pagePath = pagePath.replace('.html', '.md'); + if (!pagePath.startsWith('src/')) { + pagePath = 'src/' + pagePath; + } + } + const response = await fetch( - 'https://api.github.com/repos/Rainb0wKey/bdfd-wiki/commits?path=src/bdscript/addButton.md&per_page=1' + `https://api.github.com/repos/Rainb0wKey/bdfd-wiki/commits?path=${pagePath}&per_page=1` ); - if (!response.ok) return; - - const commits = await response.json(); - + if (!response.ok) { + if (response.status === 404) { + const dirPath = pagePath.replace(/\.md$/, '/index.md'); + const retryResponse = await fetch( + `https://api.github.com/repos/Rainb0wKey/bdfd-wiki/commits?path=${dirPath}&per_page=1` + ); + if (!retryResponse.ok) return; + var commits = await retryResponse.json(); + } else { + return; + } + } else { + var commits = await response.json(); + } + if (commits && commits.length > 0) { const lastCommit = commits[0]; const lastModified = new Date(lastCommit.commit.committer.date); From 8378f567c960b7aa639d0bc5c899862bd045c323 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 00:02:57 +0300 Subject: [PATCH 006/275] Update chrome.css --- src/theme/css/chrome.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 02ce2d6a2b1..59882ba4f48 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -176,6 +176,8 @@ html { text-decoration: none; } +/* ===== Last edited ===== */ + .last_file_edit { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 13px; @@ -183,8 +185,8 @@ html { margin: 20px 0; padding: 15px; border-top: 1px solid #eaecef; - background-color: #f6f8fa; - border-radius: 6px; + background-color: var(--bg-color); + border-radius: var(--border-radius); } .last_file_edit .edit-info { From c3c00e7f0a1eb1d6f51e48957101d5c225e3a435 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 00:04:10 +0300 Subject: [PATCH 007/275] Update chrome.css --- src/theme/css/chrome.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 59882ba4f48..e1c9e06ab26 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -184,7 +184,7 @@ html { color: #57606a; margin: 20px 0; padding: 15px; - border-top: 1px solid #eaecef; + border: 1px solid rgba(255, 255, 255, 0.05); background-color: var(--bg-color); border-radius: var(--border-radius); } From 78094e5e2e8c0fe25070d1b244fb7b7a01cadf1d Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 00:05:30 +0300 Subject: [PATCH 008/275] Update chrome.css --- src/theme/css/chrome.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index e1c9e06ab26..976d397dc02 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -185,7 +185,7 @@ html { margin: 20px 0; padding: 15px; border: 1px solid rgba(255, 255, 255, 0.05); - background-color: var(--bg-color); + background-color: var(--card-bg); border-radius: var(--border-radius); } From 3da8efd08832cea0bf9d0bcd1e94152a62d02b45 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 00:11:55 +0300 Subject: [PATCH 009/275] Update chrome.css --- src/theme/css/chrome.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 976d397dc02..a24e293a2c5 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -181,7 +181,7 @@ html { .last_file_edit { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 13px; - color: #57606a; + color: var(--text-secondary); margin: 20px 0; padding: 15px; border: 1px solid rgba(255, 255, 255, 0.05); From 4518e24da0e4ca1f5f2485c76013450a914cf01a Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:23:19 +0300 Subject: [PATCH 010/275] Update chrome.css --- src/theme/css/chrome.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index a24e293a2c5..039bc400671 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -219,13 +219,13 @@ html { } .last_file_edit .edit-date { - color: #24292f; + color: var(--text-secondary); font-weight: 600; font-size: 14px; } .last_file_edit .edit-author-line { - color: #57606a; + color: var(--text-secondary); } .last_file_edit .edit-author { From 1778d7136df7c842eb2d4346991154140b37c6c7 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:25:19 +0300 Subject: [PATCH 011/275] Update chrome.css --- src/theme/css/chrome.css | 1 - 1 file changed, 1 deletion(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 039bc400671..c195a945900 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -202,7 +202,6 @@ html { height: 36px; border-radius: 50%; object-fit: cover; - border: 2px solid #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); flex-shrink: 0; } From b8840d44b5ec1b4550e2940763c4618ba94e23be Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:30:57 +0300 Subject: [PATCH 012/275] Update home.css --- src/theme/css/home.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/theme/css/home.css b/src/theme/css/home.css index 572c3a88322..318d8a36e30 100644 --- a/src/theme/css/home.css +++ b/src/theme/css/home.css @@ -9,7 +9,8 @@ } .editPage, -.breadcrumb { +.breadcrumb, +.last_file_edit { visibility: hidden; } From b98a34fa0ded73eb1eaab1e75b21e4001d9c47df Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:31:40 +0300 Subject: [PATCH 013/275] Update serverVerificationLvl.md --- src/bdscript/serverVerificationLvl.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/bdscript/serverVerificationLvl.md b/src/bdscript/serverVerificationLvl.md index 4dc0dae1432..eebb5456c07 100644 --- a/src/bdscript/serverVerificationLvl.md +++ b/src/bdscript/serverVerificationLvl.md @@ -13,14 +13,15 @@ This server's verification level is $serverVerificationLvl ``` ``` discord yaml -- user_id: 803569638084313098 - username: RainbowKey - color: "#E67E22" - content: | - !example -- username: BDFD Support - color: "#378afa" - bot: true +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true verified: true content: | This server's verification level is Low From 74cbd2c2af6b4fc154f37f5c36d55fd6f04ab4b5 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:32:54 +0300 Subject: [PATCH 014/275] Update serverOwnerComplex.md --- src/bdscript/serverOwnerComplex.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bdscript/serverOwnerComplex.md b/src/bdscript/serverOwnerComplex.md index 6e0b7cb841e..d1931004fff 100644 --- a/src/bdscript/serverOwnerComplex.md +++ b/src/bdscript/serverOwnerComplex.md @@ -8,8 +8,10 @@ $serverOwner[Guild ID] ### Parameters - `Guild ID` `(Type: Snowflake || Flag: Required)`: The server to get the owner ID for. - -> The bot must be present in the server in order to get the server owner ID. + +```admonish warning +The bot must be present in the server in order to get the server owner ID. +``` ## Example ``` From 99622d01ab9095444898bd6d333d81661588b24f Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:33:30 +0300 Subject: [PATCH 015/275] Update serverOwner.md --- src/bdscript/serverOwner.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bdscript/serverOwner.md b/src/bdscript/serverOwner.md index 56bf4ecbd32..5b9b060a1b0 100644 --- a/src/bdscript/serverOwner.md +++ b/src/bdscript/serverOwner.md @@ -23,7 +23,6 @@ This server is owned by <@$serverOwner>! color: "#378afa" bot: true verified: true - highlight: true content: | - This server is owned by <@RainbowKey>! + This server is owned by <@Kuba>! ``` From c67be930a4b4cc386450a9ed7ade7ce6ecc9c766 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:33:46 +0300 Subject: [PATCH 016/275] Update serverOwnerComplex.md --- src/bdscript/serverOwnerComplex.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bdscript/serverOwnerComplex.md b/src/bdscript/serverOwnerComplex.md index d1931004fff..34a1159b0e8 100644 --- a/src/bdscript/serverOwnerComplex.md +++ b/src/bdscript/serverOwnerComplex.md @@ -31,8 +31,7 @@ This server is owned by <@$serverOwner[$guildID]>! bot: true verified: true content: | - This server is owned by <@RainbowKey>! - highlight: true + This server is owned by <@Kuba>! ``` ```admonish question title="What is this?" From 29bf2e800e0497555fd44933754e6e5ba91b0a52 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:34:32 +0300 Subject: [PATCH 017/275] Update serverName.md --- src/bdscript/serverName.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/bdscript/serverName.md b/src/bdscript/serverName.md index 5cf7d8661a7..5e6e86d2e90 100644 --- a/src/bdscript/serverName.md +++ b/src/bdscript/serverName.md @@ -8,8 +8,10 @@ $serverName[Guild ID] ### Parameters - `Guild ID` `(Type: Snowflake || Flag: Required)`: The server to get the name of. Use [`$guildID`](./guildID.md) for the current server. - -> The bot must be present in the server to return its name. + +```admonish warning +The bot must be present in the server to return its name. +``` ## Example ``` @@ -17,15 +19,15 @@ $nomention Server Name: $serverName[$guildID] ``` -``` discord yaml -- user_id: 803569638084313098 - username: RainbowKey - color: "#E67E22" - content: | - !example -- username: BDFD Support - color: "#378afa" - bot: true +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example +- username: BDFD Support + user_id: 1009018156494368798 + color: "#378afa" + bot: true verified: true content: | Server Name: Bot Designer for Discord Official Server From e385ef93c7da1c7357fe3a4c9c48ebb3ab67191d Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:35:43 +0300 Subject: [PATCH 018/275] Update serverDescriptionComplex.md --- src/bdscript/serverDescriptionComplex.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bdscript/serverDescriptionComplex.md b/src/bdscript/serverDescriptionComplex.md index 70e712eaf62..cfb76125cf0 100644 --- a/src/bdscript/serverDescriptionComplex.md +++ b/src/bdscript/serverDescriptionComplex.md @@ -28,4 +28,8 @@ Server description: $serverDescription[$message] verified: true content: | Server description: Welcome to the BDFD Support server! Enjoy stay with us! +``` + +```admonish question title="What is this?" +How [`$message`](./message.md) works? ``` From 7772b840e275ac5be857dbaad6a7ff3dd144046f Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:37:48 +0300 Subject: [PATCH 019/275] Update membersCountComplex.md --- src/bdscript/membersCountComplex.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/bdscript/membersCountComplex.md b/src/bdscript/membersCountComplex.md index e50689874e5..b8449bc14b1 100644 --- a/src/bdscript/membersCountComplex.md +++ b/src/bdscript/membersCountComplex.md @@ -21,6 +21,20 @@ This function requires the following privileged intents: ## Example ``` $nomention -there are $membersCount[online] online users in this server +There are $membersCount[online] online users in this server! ``` -![example](https://user-images.githubusercontent.com/70468667/219971665-9185a0b7-52e8-44eb-8d43-e5e2455bcbe3.jpg) + +``` discord yaml +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example +- username: BDFD Support + user_id: 1009018156494368798 + color: "#378afa" + bot: true + verified: true + content: | + There are 67 online users in this server! +``` \ No newline at end of file From 96758d9613981c48e822c34175d7cd0c627a6185 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:38:43 +0300 Subject: [PATCH 020/275] Update serverName.md --- src/bdscript/serverName.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bdscript/serverName.md b/src/bdscript/serverName.md index 5e6e86d2e90..3ce56beb657 100644 --- a/src/bdscript/serverName.md +++ b/src/bdscript/serverName.md @@ -17,8 +17,9 @@ The bot must be present in the server to return its name. ``` $nomention Server Name: $serverName[$guildID] -``` +``` +```discord yaml - user_id: 803569638084313098 username: RainbowKey color: "#E67E22" From dcc492bca79ef9c877b6176ab841460612aa6c3d Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:40:02 +0300 Subject: [PATCH 021/275] Update membersCount.md --- src/bdscript/membersCount.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/bdscript/membersCount.md b/src/bdscript/membersCount.md index 011d233b00c..627a61e66f7 100644 --- a/src/bdscript/membersCount.md +++ b/src/bdscript/membersCount.md @@ -9,11 +9,23 @@ $membersCount ## Example ``` $nomention -This server has $membersCount members +This server has $membersCount members! ``` -![example1](https://user-images.githubusercontent.com/70468667/219971581-9eca0e8e-0b85-4ee3-b5e1-42b4fae2178a.jpg) - +``` discord yaml +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example +- username: BDFD Support + user_id: 1009018156494368798 + color: "#378afa" + bot: true + verified: true + content: | + This server has 5281 members! +``` ## Note You can use `$membersCount` in the bot status to display how many users are in all servers of the bot. From 99fd2f2260346621b90386f5661a690f5b063a15 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:40:35 +0300 Subject: [PATCH 022/275] Update membersCount.md --- src/bdscript/membersCount.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/bdscript/membersCount.md b/src/bdscript/membersCount.md index 627a61e66f7..e9e27b0e0c1 100644 --- a/src/bdscript/membersCount.md +++ b/src/bdscript/membersCount.md @@ -27,7 +27,10 @@ This server has $membersCount members! This server has 5281 members! ``` -## Note +```admonish example + You can use `$membersCount` in the bot status to display how many users are in all servers of the bot. -![example2](https://user-images.githubusercontent.com/70468667/219971617-d3cd270f-792a-415b-b9de-2651fc9d7f08.jpg) +![example](https://user-images.githubusercontent.com/70468667/219971617-d3cd270f-792a-415b-b9de-2651fc9d7f08.jpg) + +``` \ No newline at end of file From 1eda1426ea36e2ec79cef76ab89c9be3e34cf9b7 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:41:30 +0300 Subject: [PATCH 023/275] Update guildID.md --- src/bdscript/guildID.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bdscript/guildID.md b/src/bdscript/guildID.md index d738a2258eb..51646e25289 100644 --- a/src/bdscript/guildID.md +++ b/src/bdscript/guildID.md @@ -9,7 +9,7 @@ $guildID ## Example ``` $nomention -Server's ID: $guildID +ID: $guildID ``` ```discord yaml @@ -24,5 +24,5 @@ Server's ID: $guildID bot: true verified: true content: | - Server's ID: 566363823137882154 + ID: 566363823137882154 ``` From 61051e7051ff76f7a9c3c7b52086b4d1a1697a08 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:43:39 +0300 Subject: [PATCH 024/275] Update guildIDComplex.md --- src/bdscript/guildIDComplex.md | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/bdscript/guildIDComplex.md b/src/bdscript/guildIDComplex.md index 03e28569a39..f7d414da3d9 100644 --- a/src/bdscript/guildIDComplex.md +++ b/src/bdscript/guildIDComplex.md @@ -12,6 +12,32 @@ $guildID[Server name] ## Example ``` $nomention -$noMentionMessage ID is : $guildID[$noMentionMessage] +ID: $guildID[$message] ``` -![example](https://user-images.githubusercontent.com/70468667/219971506-204ba3e1-0909-448c-bf3f-63361ffdc62e.jpg) + +```discord yaml +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example Bot Designer For Discord Official Server +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true + verified: true + content: | + ID: 566363823137882154 +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example B. Support +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true + verified: true + content: | + ID: 1009018669982031912 +``` From 280ab9021f4984ce059433bb32fbff38ac0f41c1 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:44:20 +0300 Subject: [PATCH 025/275] Update guildIDComplex.md --- src/bdscript/guildIDComplex.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bdscript/guildIDComplex.md b/src/bdscript/guildIDComplex.md index f7d414da3d9..51c010edae1 100644 --- a/src/bdscript/guildIDComplex.md +++ b/src/bdscript/guildIDComplex.md @@ -41,3 +41,7 @@ ID: $guildID[$message] content: | ID: 1009018669982031912 ``` + +```admonish question title="What is this?" +How [`$message`](./message.md) works? +``` From 0005e5d3084428a713d065dbc5b5c39c0681c848 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:45:50 +0300 Subject: [PATCH 026/275] Update guildExists.md --- src/bdscript/guildExists.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/bdscript/guildExists.md b/src/bdscript/guildExists.md index 5a91677a4c1..4bb2fa38558 100644 --- a/src/bdscript/guildExists.md +++ b/src/bdscript/guildExists.md @@ -20,14 +20,15 @@ $guildExists[$message] ``` ``` discord yaml -- user_id: 803569638084313098 - username: RainbowKey - color: "#E67E22" - content: | - !example 566363823137882154 -- username: BDFD Support - color: "#378afa" - bot: true +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true verified: true content: | true From 90be90b3a95c4ed82eaa3042949b7ca42ca2f740 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:46:47 +0300 Subject: [PATCH 027/275] Update guildExists.md --- src/bdscript/guildExists.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/bdscript/guildExists.md b/src/bdscript/guildExists.md index 4bb2fa38558..0200d80e20a 100644 --- a/src/bdscript/guildExists.md +++ b/src/bdscript/guildExists.md @@ -24,14 +24,26 @@ $guildExists[$message] username: RainbowKey color: "#E67E22" content: | - !example + !example 566363823137882154 - user_id: 1009018156494368798 username: BDFD Support color: "#378afa" bot: true verified: true content: | - true + true +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example hdiroxkxjjwos6729394 +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true + verified: true + content: | + false ``` ```admonish question title="What is this?" From 4690f1cff218f15fe82aad6c9571a99c0bbca7e1 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:47:29 +0300 Subject: [PATCH 028/275] Update guildBanner.md --- src/bdscript/guildBanner.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bdscript/guildBanner.md b/src/bdscript/guildBanner.md index 96387db0047..727ca49cabd 100644 --- a/src/bdscript/guildBanner.md +++ b/src/bdscript/guildBanner.md @@ -30,3 +30,7 @@ $guildBanner[$guildID] attachments: - url: https://cdn.discordapp.com/banners/566363823137882154/a8cd6ed3d5c665e1443e5fe8fa2ab8c8.jpg ``` + +```admonish question title="What is this?" +How [`$message`](./message.md) works? +``` \ No newline at end of file From 9d265d0083e0bdaac3ca87ee336e481a9ab95f17 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:47:50 +0300 Subject: [PATCH 029/275] Update guildBanner.md --- src/bdscript/guildBanner.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bdscript/guildBanner.md b/src/bdscript/guildBanner.md index 727ca49cabd..e4ecf88bd53 100644 --- a/src/bdscript/guildBanner.md +++ b/src/bdscript/guildBanner.md @@ -32,5 +32,5 @@ $guildBanner[$guildID] ``` ```admonish question title="What is this?" -How [`$message`](./message.md) works? +How [`$guildID`](./guildID.md) works? ``` \ No newline at end of file From 9579baa7fd410af6baf2a5a1b7b724ec3efe1998 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:51:18 +0300 Subject: [PATCH 030/275] Update guildBanner.md --- src/bdscript/guildBanner.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bdscript/guildBanner.md b/src/bdscript/guildBanner.md index e4ecf88bd53..d42689fa22a 100644 --- a/src/bdscript/guildBanner.md +++ b/src/bdscript/guildBanner.md @@ -26,7 +26,7 @@ $guildBanner[$guildID] color: "#378afa" bot: true verified: true - content: " " + content: attachments: - url: https://cdn.discordapp.com/banners/566363823137882154/a8cd6ed3d5c665e1443e5fe8fa2ab8c8.jpg ``` From 98a0ca44b3a8f77a87249330d2555481b1e327bb Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:55:05 +0300 Subject: [PATCH 031/275] Update guildBanner.md --- src/bdscript/guildBanner.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bdscript/guildBanner.md b/src/bdscript/guildBanner.md index d42689fa22a..c823b50a0a6 100644 --- a/src/bdscript/guildBanner.md +++ b/src/bdscript/guildBanner.md @@ -16,13 +16,13 @@ $guildBanner[$guildID] ``` ``` discord yaml -- username: Ivaylo - user_id: 1251981607468798089 +- user_id: 803569638084313098 + username: RainbowKey color: "#E67E22" content: | - !example -- username: BDFD Support - user_id: 1009018156494368798 + !example 566363823137882154 +- user_id: 1009018156494368798 + username: BDFD Support color: "#378afa" bot: true verified: true From 5dad95ef09448d6497bc3c963523e80f8026e236 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 08:56:23 +0300 Subject: [PATCH 032/275] Update getServerInviteComplex.md --- src/bdscript/getServerInviteComplex.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bdscript/getServerInviteComplex.md b/src/bdscript/getServerInviteComplex.md index 4d16f35a357..d6b83da758d 100644 --- a/src/bdscript/getServerInviteComplex.md +++ b/src/bdscript/getServerInviteComplex.md @@ -26,4 +26,8 @@ Required permissions that the bot must have for this function to work properly : $nomention $getServerInvite[$message] ``` -![example](https://user-images.githubusercontent.com/111157596/232099171-ab1a4cea-836a-45e7-9a93-2012ac4012e5.png) +![example](https://user-images.githubusercontent.com/111157596/232099171-ab1a4cea-836a-45e7-9a93-2012ac4012e5.png) + +```admonish question title="What is this?" +How [`$message`](./message.md) works? +``` From 72059d389fb8b91e8b0f1be2d55a2ee541f543ab Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:00:45 +0300 Subject: [PATCH 033/275] Update awaitFunc.md --- src/bdscript/awaitFunc.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/bdscript/awaitFunc.md b/src/bdscript/awaitFunc.md index 9ee3ca26592..1a9e9166faa 100644 --- a/src/bdscript/awaitFunc.md +++ b/src/bdscript/awaitFunc.md @@ -19,15 +19,15 @@ $awaitFunc[say] ``` ``` discord yaml -- user_id: 729343563401265193 - username: Nicky - color: "#EE7908" - content: | - !example -- user_id: 566613317972394004 - username: Wiki Bot - color: "#748BD4" - bot: true +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example 566363823137882154 +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true verified: true content: | What do you want me to say? From 66ce6c4e9e383198cd8264283798161f18b13237 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:01:05 +0300 Subject: [PATCH 034/275] Update botID.md --- src/bdscript/botID.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bdscript/botID.md b/src/bdscript/botID.md index 5a8055edde3..886a744e962 100644 --- a/src/bdscript/botID.md +++ b/src/bdscript/botID.md @@ -9,7 +9,7 @@ $botID ## Example ``` $nomention -My ID is: $botID +My ID: $botID ``` ```discord yaml From 7a002c416b9f4b610e1d5ace07eec7d634987b7b Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:02:05 +0300 Subject: [PATCH 035/275] Update botOwnerID.md --- src/bdscript/botOwnerID.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/bdscript/botOwnerID.md b/src/bdscript/botOwnerID.md index 7e4b0f3ea66..a3601285a43 100644 --- a/src/bdscript/botOwnerID.md +++ b/src/bdscript/botOwnerID.md @@ -17,16 +17,16 @@ My owner's ID: $botOwnerID ``` ``` discord yaml -- user_id: 729343563401265193 - username: Nicky - color: "#EE7908" - content: | - !example -- user_id: 566613317972394004 - username: Wiki Bot - color: "#748BD4" - bot: true +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example 566363823137882154 +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true verified: true content: | - My owner's ID: 729343563401265193 + My owner's ID: 803569638084313098 ``` From 5fb920df6d2ac7950e3a7b9eee96b6561c2917c1 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:02:30 +0300 Subject: [PATCH 036/275] Update commandName.md --- src/bdscript/commandName.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bdscript/commandName.md b/src/bdscript/commandName.md index 0ea23ca099d..7be36e7db63 100644 --- a/src/bdscript/commandName.md +++ b/src/bdscript/commandName.md @@ -17,7 +17,7 @@ Commmand name: $commandName username: RainbowKey color: "#E67E22" content: | - !example Hello world! + !example - username: BDFD Support user_id: 1009018156494368798 color: "#378afa" From 2484342b27345a33bfd0a035510108af46bd9875 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:02:42 +0300 Subject: [PATCH 037/275] Update commandFolder.md --- src/bdscript/commandFolder.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bdscript/commandFolder.md b/src/bdscript/commandFolder.md index bbf14f36a8e..9c3138d47f3 100644 --- a/src/bdscript/commandFolder.md +++ b/src/bdscript/commandFolder.md @@ -17,7 +17,7 @@ Commmand folder: $commandFolder username: RainbowKey color: "#E67E22" content: | - !example Hello world! + !example - username: BDFD Support user_id: 1009018156494368798 color: "#378afa" From 8f58e764f28aae2154c1394a5968222cf4a280a3 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:02:54 +0300 Subject: [PATCH 038/275] Update commandTrigger.md --- src/bdscript/commandTrigger.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bdscript/commandTrigger.md b/src/bdscript/commandTrigger.md index 8e9628c1e8a..bc004eca886 100644 --- a/src/bdscript/commandTrigger.md +++ b/src/bdscript/commandTrigger.md @@ -21,7 +21,7 @@ Commmand trigger: $commandTrigger username: RainbowKey color: "#E67E22" content: | - !example Hello world! + !example - username: BDFD Support user_id: 1009018156494368798 color: "#378afa" From 79cb5b284333e43aa6580d0cce66ab192dbe7bd8 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:03:15 +0300 Subject: [PATCH 039/275] Update commandName.md --- src/bdscript/commandName.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bdscript/commandName.md b/src/bdscript/commandName.md index 7be36e7db63..2ad247f1942 100644 --- a/src/bdscript/commandName.md +++ b/src/bdscript/commandName.md @@ -24,5 +24,5 @@ Commmand name: $commandName bot: true verified: true content: | - Commmand name: !example + Commmand name: Examples ``` From 2cda78be15c9ce98f3b24ef7c2401784cb57104d Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:03:49 +0300 Subject: [PATCH 040/275] Update commandsCount.md --- src/bdscript/commandsCount.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/bdscript/commandsCount.md b/src/bdscript/commandsCount.md index 79a7d1a8d4f..3cd105de7d4 100644 --- a/src/bdscript/commandsCount.md +++ b/src/bdscript/commandsCount.md @@ -13,15 +13,15 @@ I have $commandsCount commands! ``` ```discord yaml -- user_id: 803569638084313098 - username: RainbowKey - color: "#E67E22" - content: | - !example -- username: BDFD Support - user_id: 1009018156494368798 - color: "#378afa" - bot: true +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example 566363823137882154 +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true verified: true content: | I have 85 commands! From 36ba4ab88bc0a957ceb0cccd514ad7db624fe1c3 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:04:39 +0300 Subject: [PATCH 041/275] Update deletecommand.md --- src/bdscript/deletecommand.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/bdscript/deletecommand.md b/src/bdscript/deletecommand.md index 8eb1f6cae02..ef12c42349c 100644 --- a/src/bdscript/deletecommand.md +++ b/src/bdscript/deletecommand.md @@ -1,14 +1,18 @@ # $deletecommand Deletes the author's command message. - -> The bot must have the `manage_messages` permission. + +```admonish warning +The bot must have the `manage_messages` permission. +``` ## Syntax ``` $deletecommand ``` - -> Sometimes a message may be deleted, but you will still see it. This is a discord bug. + +```admonish note +Sometimes a message may be deleted, but you will still see it. This is a discord bug. +``` ## Example ``` From cbdec3ad70e9d0b39856df7ed6e7b22ded3a89d9 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:06:14 +0300 Subject: [PATCH 042/275] Update serverCount.md --- src/bdscript/serverCount.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bdscript/serverCount.md b/src/bdscript/serverCount.md index 460ce2166f1..f3dde4a6c04 100644 --- a/src/bdscript/serverCount.md +++ b/src/bdscript/serverCount.md @@ -26,5 +26,7 @@ I'm currently in $serverCount servers! content: | I'm currently in 203 servers! ``` - -> Can be used in bot status + +```admonish note +Can be used in bot status. +``` From c50a53e8a40b6a4718b15a9a290df574886bc982 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:08:56 +0300 Subject: [PATCH 043/275] Update else.md --- src/bdscript/else.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/bdscript/else.md b/src/bdscript/else.md index c3a9b1899ac..c0e872d7508 100644 --- a/src/bdscript/else.md +++ b/src/bdscript/else.md @@ -22,9 +22,10 @@ $endif color: "#E67E22" content: | !example -- username: BDFD Support - color: "#378afa" - bot: true +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true verified: true content: | You are the developer of this bot! @@ -33,9 +34,10 @@ $endif color: "#FF0000" content: | !example -- username: BDFD Support - color: "#378afa" - bot: true +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true verified: true content: | You are not the developer of this bot! From 2c73ec45317b802fa890adebfe394a543f1af887 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:09:31 +0300 Subject: [PATCH 044/275] Update endif.md --- src/bdscript/endif.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/bdscript/endif.md b/src/bdscript/endif.md index 2d7290399be..6c6a004d898 100644 --- a/src/bdscript/endif.md +++ b/src/bdscript/endif.md @@ -20,13 +20,16 @@ $endif color: "#E67E22" content: | !example BDFD -- username: BDFD Support - color: "#378afa" - bot: true +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true verified: true content: | I love BDFD! ``` + +~~~admonish example - Without `$endif`: @@ -36,14 +39,16 @@ $endif color: "#E67E22" content: | !example BDFD -- username: BDFD Support - color: "#378afa" - bot: true +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true verified: true content: | $if not closed with $endif ``` - + +~~~ ```admonish info title="Read more" For more information, read the the [If Statements Guide](../guides/ifStatements.md). From 12b00939606f36d148b7f9e076875fe54fcf8d55 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:12:04 +0300 Subject: [PATCH 045/275] Update mentionedChannels.md --- src/bdscript/mentionedChannels.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/bdscript/mentionedChannels.md b/src/bdscript/mentionedChannels.md index 9b3688d1d23..71863c8c54b 100644 --- a/src/bdscript/mentionedChannels.md +++ b/src/bdscript/mentionedChannels.md @@ -17,7 +17,20 @@ $mentionedChannels[Mention number;(Return current?)] ## Example ``` $nomention -$mentionedChannels[1] +Channel: $mentionedChannels[1] ``` -![example](https://user-images.githubusercontent.com/69215413/126917253-33db5d96-fdb3-43a3-b614-1ac061701fb1.png) +``` discord yaml +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example <#main-chat> +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true + verified: true + content: | + Channel: 566370477967147018 +``` From e11fe50fe9258ecf175014f504a38404945c5707 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:12:35 +0300 Subject: [PATCH 046/275] Update linesCount.md --- src/bdscript/linesCount.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bdscript/linesCount.md b/src/bdscript/linesCount.md index efa5956ee6d..3553cfb8bc4 100644 --- a/src/bdscript/linesCount.md +++ b/src/bdscript/linesCount.md @@ -16,8 +16,8 @@ $linesCount[$message] ``` ``` discord yaml -- username: Ivaylo - user_id: 1251981607468798089 +- user_id: 803569638084313098 + username: RainbowKey color: "#E67E22" content: | !example Hello World! From 65e750d76ba46271bddbb650a70ab708d61f5142 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:14:10 +0300 Subject: [PATCH 047/275] Update repeatMessage.md --- src/bdscript/repeatMessage.md | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/src/bdscript/repeatMessage.md b/src/bdscript/repeatMessage.md index 73eef757718..b900d801049 100644 --- a/src/bdscript/repeatMessage.md +++ b/src/bdscript/repeatMessage.md @@ -3,12 +3,12 @@ Repeats the provided text a certain amount of times. ## Syntax ``` -$repeatMessage[Amount;Message] +$repeatMessage[Amount;Text] ``` ### Parameters - `Amount` `(Type: Integer || Flag: Required)`: The number of times to repeat the given text (max `10` times). -- `Message` `(Type: String || Flag: Emptiable)`: The text to repeat. +- `Text` `(Type: String || Flag: Emptiable)`: The text to repeat. ## Example ``` @@ -31,6 +31,28 @@ $repeatMessage[5;Hello World!] Hello World!Hello World!Hello World!Hello World!Hello World! ``` -```admonish info -You can use a space at the end of "text" in the `Message` parameter, so there are spaces in-between repeats. -``` +~~~admonish example + +You can use a space at the end of "text" in the `Text` parameter, so there are spaces in-between repeats: + +``` +$nomention +$repeatMessage[5;Hello World! ] +``` + +``` discord yaml +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example +- username: BDFD Support + user_id: 1009018156494368798 + color: "#378afa" + bot: true + verified: true + content: | + Hello World! Hello World! Hello World! Hello World! Hello World! +``` + +~~~ From 1b13c6f839a10f046f346bcf903cc81c293eaba0 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:16:03 +0300 Subject: [PATCH 048/275] Update endtry.md --- src/bdscript/endtry.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/bdscript/endtry.md b/src/bdscript/endtry.md index e6ae4c85ed4..1960d2f17cd 100644 --- a/src/bdscript/endtry.md +++ b/src/bdscript/endtry.md @@ -18,7 +18,6 @@ $try $endtry ``` -- With `$endtry`: ```discord yaml - user_id: 803569638084313098 username: RainbowKey @@ -33,6 +32,8 @@ $endtry content: | 7 ``` + +~~~admonish example - Without `$endtry`: ```discord yaml @@ -48,7 +49,9 @@ $endtry verified: true content: | $try not closed with $endtry or invalid use of $sum -``` +``` + +~~~ ```admonish question title="What is this?" How [`$calculate[]`](./calculate.md), [`$message`](./message.md) and [`$try`](./try.md) works? From acb372392160add294cc00d0f22568679de78a19 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:17:26 +0300 Subject: [PATCH 049/275] Update textSplit.md --- src/bdscript/textSplit.md | 64 ++++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/src/bdscript/textSplit.md b/src/bdscript/textSplit.md index 5a6201f9293..4978b683ee4 100644 --- a/src/bdscript/textSplit.md +++ b/src/bdscript/textSplit.md @@ -1,31 +1,33 @@ -# $textSplit -Splits the provided text by a given separator and saves the value temporarily. - -> 📌 To retrieve the split values, use [`$splitText`](./splitText.md). - -## Syntax -``` -$textSplit[Text;Separator] -``` - -### Parameters -- `Text` `(Type: String || Flag: Emptiable)`: The text to split. -- `Separator` `(Type: String || Flag: Emptiable)`: The separator to split the text with. If this parameter is empty, it separates the text by each character. - -### Example -``` -$nomention -$textSplit[Coffee, Tea, Milk;,] -$splitText[1] -``` -![Screenshot_20221029_203537](https://user-images.githubusercontent.com/95774950/198839569-338c0892-80ef-4e7a-bbb7-dd696c6ab15b.png) - -###### _In the above example, [`$textSplit`](#textsplit) splits the provided text using a comma (`,`) as the separator. After that, [`$splitText`](./splitText.md) is used to retrieve the first split value._ - -## Related Resources -- [Text Splitting Guide](../guides/general/textSplitting.md) -- [$getTextSplitIndex](./getTextSplitIndex.md) -- [$getTextSplitLength](./getTextSplitLength.md) -- [$joinSplitText](./joinSplitText.md) -- [$removeSplitTextElement](./removeSplitTextElement.md) -- [$splitText](./splitText.md) +# $textSplit +Splits the provided text by a given separator and saves the value temporarily. + +## Syntax +``` +$textSplit[Text;Separator] +``` + +### Parameters +- `Text` `(Type: String || Flag: Emptiable)`: The text to split. +- `Separator` `(Type: String || Flag: Emptiable)`: The separator to split the text with. If this parameter is empty, it separates the text by each character. + +## Example +``` +$nomention +$textSplit[Hello-world-!;-] +> $splitText[2] +``` + +``` discord yaml +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true + verified: true + content: | + world +``` \ No newline at end of file From 36da8912a0927941ffa7d3ee3166049c59dcbbe5 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:19:29 +0300 Subject: [PATCH 050/275] Update editSplitText.md --- src/bdscript/editSplitText.md | 69 +++++++++++++++++------------------ 1 file changed, 34 insertions(+), 35 deletions(-) diff --git a/src/bdscript/editSplitText.md b/src/bdscript/editSplitText.md index c9d0a9fd39c..021d4a1a63c 100644 --- a/src/bdscript/editSplitText.md +++ b/src/bdscript/editSplitText.md @@ -1,35 +1,34 @@ -# $editSplitText -Edits a splitted text element using its index. - -## Syntax -``` -$editSplitText[Index;Value] -``` - -### Parameters -- `Index` `(Type: Integer || Flag: Required)`: The index of the element to edit. -- `Value` `(Type: String || Flag: Required)`: The new value to assign to the provided index. - -## Example -``` -$nomention - -$textSplit[$message; ] - -$var[Index;$splitText[$sub[$getTextSplitLength;1]]] -$var[Value;$splitText[$getTextSplitLength]] - -$removeSplitTextElement[$getTextSplitLength] -$removeSplitTextElement[$getTextSplitLength] - -$var[Text;$joinSplitText[ ]] - -$textSplit[$var[Text];] -$editSplitText[$var[Index];$var[Value]] - -Original Text: $var[Text] -New Text: $joinSplitText[] -``` -![example](https://user-images.githubusercontent.com/95774950/202880969-9ce5041a-cc6c-4bd2-a275-76e9d80be5b5.png) - -> For more info, see the [Text Splitting Guide](../guides/general/textSplitting.md). +# $editSplitText +This function replaces the element at the specified index with a new element instead of the previous one. + +## Syntax +``` +$editSplitText[Index;Value] +``` + +### Parameters +- `Index` `(Type: Integer || Flag: Required)`: The index of the element to edit. +- `Value` `(Type: String || Flag: Required)`: The new value to assign to the provided index. + +## Example +``` +$nomention +$textSplit[Hello-world-!;-] +$editSplitText[2;bdfd] +> $joinSplitText[-] +``` + +``` discord yaml +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true + verified: true + content: | + Hello-bdfd-! +``` \ No newline at end of file From 5913e9f5c72d1228c8cc91b1d4c14f8efb2e5114 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:22:03 +0300 Subject: [PATCH 051/275] Update removeSplitTextElement.md --- src/bdscript/removeSplitTextElement.md | 47 ++++++++++++++++++-------- 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/src/bdscript/removeSplitTextElement.md b/src/bdscript/removeSplitTextElement.md index a77410aa9e1..5d59c28e938 100644 --- a/src/bdscript/removeSplitTextElement.md +++ b/src/bdscript/removeSplitTextElement.md @@ -1,14 +1,33 @@ -# $removeSplitTextElement -Removes a certain element from the [`$textSplit[]`](./textSplit.md) values. - -> This function is unneeded, if `$textSplit[]` isn't present in the code. - -## Syntax -``` -$removeSplitTextElement[Index] -``` - -### Parameters -- `Index` `(Type: Integer || Flag: Required)`: The index of the `$textSplit[]` value to remove. - -> For more info, see the [Text Splitting Guide](../guides/general/textSplitting.md). +# $removeSplitTextElement +This function removes an element from the separated text by the specified index. + +## Syntax +``` +$removeSplitTextElement[Index] +``` + +### Parameters +- `Index` `(Type: Integer || Flag: Required)`: The index of the `$textSplit[]` value to remove. + +## Example +``` +$nomention +$textSplit[hello-world-!;-] +$removeSplitTextElement[3] +> $joinSplitText[-] +``` + +``` discord yaml +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true + verified: true + content: | + hello-world +``` \ No newline at end of file From b9556f20e11888566a3cb5e25774c0e7d018197e Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:23:41 +0300 Subject: [PATCH 052/275] Update alternativeParsing.md --- src/bdscript/alternativeParsing.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/bdscript/alternativeParsing.md b/src/bdscript/alternativeParsing.md index eb9dd2bd664..08b13ab2a31 100644 --- a/src/bdscript/alternativeParsing.md +++ b/src/bdscript/alternativeParsing.md @@ -39,9 +39,9 @@ This function was added at the end of 2019 as an experiment, and it can be unsta ``` 3. Execute commands. ``` discord yaml -- user_id: 729343563401265193 - username: Nicky - color: "#EE7908" +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" content: | hello - user_id: 566613317972394004 @@ -52,9 +52,9 @@ This function was added at the end of 2019 as an experiment, and it can be unsta content: embed: description: "\"hello\"" -- user_id: 729343563401265193 - username: Nicky - color: "#EE7908" +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" content: | helloworld @@ -73,9 +73,9 @@ This function was added at the end of 2019 as an experiment, and it can be unsta - Without `$alternativeParsing`: ``` discord yaml -- user_id: 729343563401265193 - username: Nicky - color: "#EE7908" +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" content: | hello - user_id: 566613317972394004 @@ -86,9 +86,9 @@ This function was added at the end of 2019 as an experiment, and it can be unsta content: embed: description: "\"hello\"" -- user_id: 729343563401265193 - username: Nicky - color: "#EE7908" +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" content: | helloworld - user_id: 566613317972394004 From f852d6a816a85c344193bb91a163d750e18a5455 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:24:19 +0300 Subject: [PATCH 053/275] Update alternativeParsing.md --- src/bdscript/alternativeParsing.md | 32 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/bdscript/alternativeParsing.md b/src/bdscript/alternativeParsing.md index 08b13ab2a31..a4581a313d8 100644 --- a/src/bdscript/alternativeParsing.md +++ b/src/bdscript/alternativeParsing.md @@ -44,10 +44,10 @@ This function was added at the end of 2019 as an experiment, and it can be unsta color: "#E67E22" content: | hello -- user_id: 566613317972394004 - username: Wiki Bot - color: "#748BD4" - bot: true +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true verified: true content: embed: @@ -58,10 +58,10 @@ This function was added at the end of 2019 as an experiment, and it can be unsta content: | helloworld -- user_id: 566613317972394004 - username: Wiki Bot - color: "#748BD4" - bot: true +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true verified: true content: embed: @@ -78,10 +78,10 @@ This function was added at the end of 2019 as an experiment, and it can be unsta color: "#E67E22" content: | hello -- user_id: 566613317972394004 - username: Wiki Bot - color: "#748BD4" - bot: true +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true verified: true content: embed: @@ -91,10 +91,10 @@ This function was added at the end of 2019 as an experiment, and it can be unsta color: "#E67E22" content: | helloworld -- user_id: 566613317972394004 - username: Wiki Bot - color: "#748BD4" - bot: true +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true verified: true content: embeds: From 8843340dbf2e66bdb0f961ee6c5d0f66238a67e7 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:24:37 +0300 Subject: [PATCH 054/275] Update c.md --- src/bdscript/c.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bdscript/c.md b/src/bdscript/c.md index faa4600763b..26be432a3eb 100644 --- a/src/bdscript/c.md +++ b/src/bdscript/c.md @@ -22,10 +22,10 @@ $c[This is a say command. You are reading a comment!] color: "#EE7908" content: | !example As you can see, the comment doesn't appear! Pretty cool; right? -- user_id: 566613317972394004 - username: Wiki Bot - color: "#748BD4" - bot: true +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true verified: true content: | As you can see, the comment doesn't appear! Pretty cool; right? From 6a00887eb867958d612c37af2ba1fe769717b735 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:25:02 +0300 Subject: [PATCH 055/275] Update c.md --- src/bdscript/c.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bdscript/c.md b/src/bdscript/c.md index 26be432a3eb..cbb9056c09c 100644 --- a/src/bdscript/c.md +++ b/src/bdscript/c.md @@ -17,9 +17,9 @@ $c[This is a say command. You are reading a comment!] ``` ``` discord yaml -- user_id: 729343563401265193 - username: Nicky - color: "#EE7908" + user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" content: | !example As you can see, the comment doesn't appear! Pretty cool; right? - user_id: 1009018156494368798 From b40f1b1d46bf7685cd2573dee85013570faee1f9 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:25:11 +0300 Subject: [PATCH 056/275] Update c.md --- src/bdscript/c.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bdscript/c.md b/src/bdscript/c.md index cbb9056c09c..f1fe7e9b78f 100644 --- a/src/bdscript/c.md +++ b/src/bdscript/c.md @@ -17,7 +17,7 @@ $c[This is a say command. You are reading a comment!] ``` ``` discord yaml - user_id: 803569638084313098 +- user_id: 803569638084313098 username: RainbowKey color: "#E67E22" content: | From 2bf10cded995afbfc219dff43262a6ef2c0fad1d Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:27:25 +0300 Subject: [PATCH 057/275] Update editSplitText.md --- src/bdscript/editSplitText.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bdscript/editSplitText.md b/src/bdscript/editSplitText.md index 021d4a1a63c..04c2e091fc7 100644 --- a/src/bdscript/editSplitText.md +++ b/src/bdscript/editSplitText.md @@ -31,4 +31,8 @@ $editSplitText[2;bdfd] verified: true content: | Hello-bdfd-! +``` + +```admonish question title="What is this?" +How [`$textSplit[]`](./textSplit.md) and [`$joinSplitText[]`](./joinSplitText.md) works? ``` \ No newline at end of file From 2cc40a0d8402734be03b077265d04def43884156 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:27:51 +0300 Subject: [PATCH 058/275] Update getTextSplitIndex.md --- src/bdscript/getTextSplitIndex.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bdscript/getTextSplitIndex.md b/src/bdscript/getTextSplitIndex.md index 5ab34bbde3f..d718d235e21 100644 --- a/src/bdscript/getTextSplitIndex.md +++ b/src/bdscript/getTextSplitIndex.md @@ -42,5 +42,9 @@ $textSplit[hello_world_!;_] content: | -1 ``` + +```admonish question title="What is this?" +How [`$textSplit[]`](./textSplit.md) works? +``` > For more info, see the [Text Splitting Guide](../guides/general/textSplitting.md). From ebeb8215903fa62b7a723a92545015d699908092 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:28:13 +0300 Subject: [PATCH 059/275] Update getTextSplitLength.md --- src/bdscript/getTextSplitLength.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bdscript/getTextSplitLength.md b/src/bdscript/getTextSplitLength.md index 2c3fd6513cd..762340c8ce9 100644 --- a/src/bdscript/getTextSplitLength.md +++ b/src/bdscript/getTextSplitLength.md @@ -27,5 +27,9 @@ $textSplit[hello%world%!;%] content: | 3 ``` + +```admonish question title="What is this?" +How [`$textSplit[]`](./textSplit.md) works? +``` > For more info, see the [Text Splitting Guide](../guides/general/textSplitting.md). From 48b8d7247c7881bf475951b5ee2365e325ce6c7a Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:28:58 +0300 Subject: [PATCH 060/275] Update textSplit.md --- src/bdscript/textSplit.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bdscript/textSplit.md b/src/bdscript/textSplit.md index 4978b683ee4..f0e36b2ded6 100644 --- a/src/bdscript/textSplit.md +++ b/src/bdscript/textSplit.md @@ -30,4 +30,8 @@ $textSplit[Hello-world-!;-] verified: true content: | world +``` + +```admonish question title="What is this?" +How [`$splitText[]`](./splitText.md) works? ``` \ No newline at end of file From f5674ea9a5c1a1ea0665336368c54e6ce4ad26a9 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:31:03 +0300 Subject: [PATCH 061/275] Update joinSplitText.md --- src/bdscript/joinSplitText.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bdscript/joinSplitText.md b/src/bdscript/joinSplitText.md index 23908d9663d..14499811192 100644 --- a/src/bdscript/joinSplitText.md +++ b/src/bdscript/joinSplitText.md @@ -36,4 +36,6 @@ $joinSplitText[+] How [`$textSplit[]`](./textSplit.md) and [`$message`](./message.md) works? ``` -> For more info, see the [Text Splitting Guide](../guides/general/textSplitting.md). +```admonish info title="Read more" +For more information, read the the [Text Splitting Guide](../guides/general/textSplitting.md). +``` From 0614f853a9dbfbc9654abd4bce2bde35cb0edb0f Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:31:28 +0300 Subject: [PATCH 062/275] Update editSplitText.md --- src/bdscript/editSplitText.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bdscript/editSplitText.md b/src/bdscript/editSplitText.md index 04c2e091fc7..be89dd40f55 100644 --- a/src/bdscript/editSplitText.md +++ b/src/bdscript/editSplitText.md @@ -35,4 +35,8 @@ $editSplitText[2;bdfd] ```admonish question title="What is this?" How [`$textSplit[]`](./textSplit.md) and [`$joinSplitText[]`](./joinSplitText.md) works? -``` \ No newline at end of file +``` + +```admonish info title="Read more" +For more information, read the the [Text Splitting Guide](../guides/general/textSplitting.md). +``` From ad8fde9c80c8fbdd423418b834091664b24fb96e Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:31:50 +0300 Subject: [PATCH 063/275] Update getTextSplitIndex.md --- src/bdscript/getTextSplitIndex.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bdscript/getTextSplitIndex.md b/src/bdscript/getTextSplitIndex.md index d718d235e21..1f220850ba9 100644 --- a/src/bdscript/getTextSplitIndex.md +++ b/src/bdscript/getTextSplitIndex.md @@ -47,4 +47,6 @@ $textSplit[hello_world_!;_] How [`$textSplit[]`](./textSplit.md) works? ``` -> For more info, see the [Text Splitting Guide](../guides/general/textSplitting.md). +```admonish info title="Read more" +For more information, read the the [Text Splitting Guide](../guides/general/textSplitting.md). +``` \ No newline at end of file From a5650980c52c04bac4da2a41301c3f344ad12d96 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:32:10 +0300 Subject: [PATCH 064/275] Update getTextSplitLength.md --- src/bdscript/getTextSplitLength.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bdscript/getTextSplitLength.md b/src/bdscript/getTextSplitLength.md index 762340c8ce9..a0f280a7541 100644 --- a/src/bdscript/getTextSplitLength.md +++ b/src/bdscript/getTextSplitLength.md @@ -32,4 +32,6 @@ $textSplit[hello%world%!;%] How [`$textSplit[]`](./textSplit.md) works? ``` -> For more info, see the [Text Splitting Guide](../guides/general/textSplitting.md). +```admonish info title="Read more" +For more information, read the the [Text Splitting Guide](../guides/general/textSplitting.md). +``` \ No newline at end of file From ec5fb815b9b182f8d8e3a87a9f5640760a08c30b Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:32:35 +0300 Subject: [PATCH 065/275] Update textSplit.md --- src/bdscript/textSplit.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bdscript/textSplit.md b/src/bdscript/textSplit.md index f0e36b2ded6..08c21ef8c01 100644 --- a/src/bdscript/textSplit.md +++ b/src/bdscript/textSplit.md @@ -34,4 +34,8 @@ $textSplit[Hello-world-!;-] ```admonish question title="What is this?" How [`$splitText[]`](./splitText.md) works? +``` + +```admonish info title="Read more" +For more information, read the the [Text Splitting Guide](../guides/general/textSplitting.md). ``` \ No newline at end of file From a1ba346484cb427ed11b2119825fcc3d4f572e69 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:32:48 +0300 Subject: [PATCH 066/275] Update splitText.md --- src/bdscript/splitText.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bdscript/splitText.md b/src/bdscript/splitText.md index be9218aff2e..f09f6cf8690 100644 --- a/src/bdscript/splitText.md +++ b/src/bdscript/splitText.md @@ -38,4 +38,8 @@ $textSplit[hello world !; ] ```admonish question title="What is this?" How [`$textSplit[]`](./textSplit.md) works? -``` \ No newline at end of file +``` + +```admonish info title="Read more" +For more information, read the the [Text Splitting Guide](../guides/general/textSplitting.md). +``` From 1d64aad9e43ea8a1f02cb17cd48569d6763df4a6 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:35:30 +0300 Subject: [PATCH 067/275] Update removeSplitTextElement.md --- src/bdscript/removeSplitTextElement.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bdscript/removeSplitTextElement.md b/src/bdscript/removeSplitTextElement.md index 5d59c28e938..e328f71d3b2 100644 --- a/src/bdscript/removeSplitTextElement.md +++ b/src/bdscript/removeSplitTextElement.md @@ -30,4 +30,8 @@ $removeSplitTextElement[3] verified: true content: | hello-world -``` \ No newline at end of file +``` + +```admonish info title="Read more" +For more information, read the the [Text Splitting Guide](../guides/general/textSplitting.md). +``` From 556e8bc3c2e41ae4e7c0c4ba2f99658ef660114f Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:38:23 +0300 Subject: [PATCH 068/275] Update CHANGELOG.md --- src/CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 3d5c3f06b23..0981e7127fe 100644 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -18,7 +18,6 @@ Added Components V2 functions: - Added `$addSection[]` - Added `$addThumbnail[]` - Added `$addMediaGallery[]` -- Added `$addMediaGallery[]` - Added `$addMediaGalleryItem[]` - Added `$addActionRow[]` - Added `$addButtonCV2[]` From ed6bd41df572b95543fb74de7c5b590f1535469c Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:43:59 +0300 Subject: [PATCH 069/275] Create addMediaGallery.md --- src/bdscript/addMediaGallery.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/bdscript/addMediaGallery.md diff --git a/src/bdscript/addMediaGallery.md b/src/bdscript/addMediaGallery.md new file mode 100644 index 00000000000..503af5fab2f --- /dev/null +++ b/src/bdscript/addMediaGallery.md @@ -0,0 +1,26 @@ +# $addMediaGallery +
+ Components v2 +
+ +Adds a media gallery to the message. + +## Syntax +``` +$addMediaGallery[Gallery name;(Container name)] +``` + +### Parameters +- `Gallery name` `(Type: String || Flag: Required)`: Name for attaching pictures to the gallery. +- `Container name` `(Type: String || Flag: Optional)`: To which [container body](./addContainer.md) should the gallery be attached. + +## Example +``` +$nomention +$addMediaGallery[pictures] +$addMediaGalleryItem[$authorAvatar;avatar;false;pictures] +``` + +```admonish question title="What is this?" +How [`$addMediaGalleryItem[]`](./addMediaGalleryItem.md) and [`$authorAvatar`](./authorAvatar.md) works? +``` \ No newline at end of file From 95fdb0279d7cc5f046a4152a6e915498c90ec6d5 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:45:20 +0300 Subject: [PATCH 070/275] Update SUMMARY.md --- src/SUMMARY.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 8dff831fcec..5a32af2acb2 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -84,6 +84,7 @@ - [Embeds]() - [$addContainer](./bdscript/addContainer.md) - [$addField](./bdscript/addField.md) + - [$addMediaGallery](./bdscript/addMediaGallery.md) - [$addSection](./bdscript/addSection.md) - [$addThumbnail](./bdscript/addThumbnail.md) - [$addTimestamp](./bdscript/addTimestamp.md) From f87b718ffdc7e77ce85e58f8f8e1cb5055efa566 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:46:29 +0300 Subject: [PATCH 071/275] Update addMediaGallery.md --- src/bdscript/addMediaGallery.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bdscript/addMediaGallery.md b/src/bdscript/addMediaGallery.md index 503af5fab2f..12765657ca7 100644 --- a/src/bdscript/addMediaGallery.md +++ b/src/bdscript/addMediaGallery.md @@ -18,7 +18,7 @@ $addMediaGallery[Gallery name;(Container name)] ``` $nomention $addMediaGallery[pictures] -$addMediaGalleryItem[$authorAvatar;avatar;false;pictures] +$addMediaGalleryItem[$authorAvatar;;;pictures] ``` ```admonish question title="What is this?" From 98e24f191fd698306c1e77cb9717ceabef952dc4 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:59:27 +0300 Subject: [PATCH 072/275] Create addMediaGalleryItem.md --- src/bdscript/addMediaGalleryItem.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/bdscript/addMediaGalleryItem.md diff --git a/src/bdscript/addMediaGalleryItem.md b/src/bdscript/addMediaGalleryItem.md new file mode 100644 index 00000000000..0c879bc3ee8 --- /dev/null +++ b/src/bdscript/addMediaGalleryItem.md @@ -0,0 +1,11 @@ +# $addMediaGalleryItem +
+ Components v2 +
+ +Adds a media to the gallery. + +## Syntax +``` +$addMediaGalleryItem[Media URL;Description;Spoiler?;(Gallery name)] +``` \ No newline at end of file From 0e759fe4f528a89622e1f10755a91b300be4b573 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 09:59:53 +0300 Subject: [PATCH 073/275] Update SUMMARY.md --- src/SUMMARY.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 5a32af2acb2..bb2239f6dd5 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -85,6 +85,7 @@ - [$addContainer](./bdscript/addContainer.md) - [$addField](./bdscript/addField.md) - [$addMediaGallery](./bdscript/addMediaGallery.md) + - [$addMediaGalleryItem](./bdscript/addMediaGalleryItem.md) - [$addSection](./bdscript/addSection.md) - [$addThumbnail](./bdscript/addThumbnail.md) - [$addTimestamp](./bdscript/addTimestamp.md) From 41c770e361fa540588fd08fdf7289648741578ec Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 10:01:35 +0300 Subject: [PATCH 074/275] Create json.md --- src/tools/json.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/tools/json.md diff --git a/src/tools/json.md b/src/tools/json.md new file mode 100644 index 00000000000..2d9db6d8181 --- /dev/null +++ b/src/tools/json.md @@ -0,0 +1,7 @@ + + +Redirectig to https://bdfd-tool.github.io/bdfd-wiki/nightly/tools/json.html \ No newline at end of file From fee7fe2b1dc7a48f7851ff2aad840895dbed59a2 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 10:01:59 +0300 Subject: [PATCH 075/275] Update SUMMARY.md --- src/SUMMARY.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SUMMARY.md b/src/SUMMARY.md index bb2239f6dd5..8421707e281 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -45,6 +45,7 @@ - [Tools]() - [Color](./tools/color.md) - [Text Editor](./tools/editor.md) + - [JSON Editor](./tools/json.md) - [Permission Calculator](./tools/permissionscalculator.md) - [Timestamp Converter](./tools/timestamp.md) From caced7bb89127272d858adefbfa6ea1ce34c57a2 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 10:46:39 +0300 Subject: [PATCH 076/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index a9c466e62dd..cb8a8bda1fe 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -1,6 +1,21 @@ async function createAndUpdateLastEdit() { try { const currentPath = window.location.pathname; + + const allowedPaths = ['premium', 'bdscript', 'guides', 'resources', 'flowchart', 'callbacks']; + + let shouldAddBlock = false; + for (const path of allowedPaths) { + if (currentPath.includes(`/${path}/`) || + currentPath.endsWith(`/${path}`) || + currentPath.endsWith(`/${path}.html`)) { + shouldAddBlock = true; + break; + } + } + + if (!shouldAddBlock) return; + let pagePath = ''; if (currentPath.includes('/nightly/')) { @@ -73,7 +88,12 @@ async function createAndUpdateLastEdit() { `; - document.body.appendChild(container); + const mainElement = document.querySelector('main'); + if (mainElement) { + mainElement.appendChild(container); + } else { + document.body.appendChild(container); + } const DiscordThemes = { light: { From 6322e56c3831fa4444cf450fd27b5bfb64540cf2 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 10:51:50 +0300 Subject: [PATCH 077/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 515 ++++++++++++++------------- 1 file changed, 258 insertions(+), 257 deletions(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index cb8a8bda1fe..8f15203fd19 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -94,276 +94,277 @@ async function createAndUpdateLastEdit() { } else { document.body.appendChild(container); } - - const DiscordThemes = { - light: { - reactionColor: "#F2F3F5", - messageTextColor: "#313338", - background: "#FFF", - }, - dark: { - reactionColor: "#202226", - messageTextColor: "#C6C7CC", - background: "#1C1D22", - }, - redmoon: { - reactionColor: "#4e0505", - background: "linear-gradient(-25deg, #240000, #740606)", - }, - nightsapphire: { - reactionColor: "#180052", - background: "linear-gradient(-25deg, #000124, #260674)", - }, - emeraldearth: { - reactionColor: "#006d3f", - background: "linear-gradient(-25deg, #0c2400, #067446)", - }, - nightviolet: { - reactionColor: "#390085", - background: "linear-gradient(-25deg, #1d0024, #350674)", - }, - oldwood: { - reactionColor: "#714400", - background: "linear-gradient(-25deg, #240f00, #744806)", - }, - azuresky: { - reactionColor: "#007162", - background: "linear-gradient(-25deg, #001a24, #067465)", + } + } catch (error) {} +} + +const DiscordThemes = { + light: { + reactionColor: "#F2F3F5", + messageTextColor: "#313338", + background: "#FFF", + }, + dark: { + reactionColor: "#202226", + messageTextColor: "#C6C7CC", + background: "#1C1D22", + }, + redmoon: { + reactionColor: "#4e0505", + background: "linear-gradient(-25deg, #240000, #740606)", + }, + nightsapphire: { + reactionColor: "#180052", + background: "linear-gradient(-25deg, #000124, #260674)", + }, + emeraldearth: { + reactionColor: "#006d3f", + background: "linear-gradient(-25deg, #0c2400, #067446)", + }, + nightviolet: { + reactionColor: "#390085", + background: "linear-gradient(-25deg, #1d0024, #350674)", + }, + oldwood: { + reactionColor: "#714400", + background: "linear-gradient(-25deg, #240f00, #744806)", + }, + azuresky: { + reactionColor: "#007162", + background: "linear-gradient(-25deg, #001a24, #067465)", + }, + cherryvelvety: { + reactionColor: "#710049", + background: "linear-gradient(-25deg, #240017, #74064d)", + }, + forestdepth: { + reactionColor: "#616d00", + background: "linear-gradient(-25deg, #222400, #687406)", + }, + nightchestnut: { + reactionColor: "#4e0505", + background: "linear-gradient(-25deg, #190024, #740606)", + }, + mosscovered: { + reactionColor: "#4b6d11", + background: "linear-gradient(-25deg, #1c2400, #4c7406)", + }, + deepruby: { + reactionColor: "#74066e", + background: "linear-gradient(-25deg, #1f0024, #74066e)", + }, + fernvalley: { + reactionColor: "#1e6d00", + background: "linear-gradient(-25deg, #00240a, #247406)", + }, + forestshadows: { + reactionColor: "#086b00", + background: "linear-gradient(-25deg, #000624, #086700 , #0a7f01)", + }, + autumnblaze: { + reactionColor: "#742006", + background: "linear-gradient(-25deg, #240800, #742006)", + }, +}; + +function setDiscordTheme(colorId) { + const discordMessages = document.getElementsByTagName("discord-messages"); + + const styles = { + reactionColor: "#131318", + messageTextColor: "#DDDEE1", + background: "#000", + ...(DiscordThemes[colorId] || {}), + }; + + const callback = (mutationList, observer) => { + for (const mutation of mutationList) { + if ( + mutation.type === "attributes" && + mutation.attributeName === "class" + ) { + const reactions = + document.getElementsByTagName("discord-reaction"); + const messageColors = document.querySelectorAll( + ".discord-message .discord-message-markup" + ); + + const botToApp = + document.querySelectorAll('.discord-application-tag'); + + if (styles.background) + mutation.target.style.background = styles.background; + mutation.target.style.backgroundColor = styles.exampleColor; + for (const reaction of reactions) { + reaction.children.item(0).style.backgroundColor = + styles.reactionColor; + } + messageColors.forEach((text) => { + text.style.color = styles.messageTextColor; + }); + + botToApp.forEach(tag => { + if (tag.textContent.includes("Bot")) { + tag.textContent = tag.textContent.replace("Bot", "App"); + tag.setAttribute("aria-label", "Verified App"); + } + }); + + const timestamps = document.querySelectorAll( + ".discord-message-timestamp" + ); + timestamps.forEach((timestamp) => { + var time = new Date().getTime(); + var minuteExample = new Date().getMinutes(); + var hourExample = new Date().getHours(); + const formattedMinute = + minuteExample < 10 + ? `0${minuteExample}` + : minuteExample; + const formattedHour = + hourExample < 10 ? `0${hourExample}` : hourExample; + const formattedTime = `Today at ${formattedHour}:${formattedMinute}`; + timestamp.textContent = formattedTime; + }); + } + } + }; + + for (message of discordMessages) { + const mutObv = new MutationObserver(callback); + mutObv.observe(message, { attributes: true }); + } +} + +function applySettings() { + const snowflakes = document.querySelector(".snowflakes"); + + let data; + + try { + data = JSON.parse(localStorage.getItem("json")); + } catch {} + + const defaultData = { + "discord-example-theme": "dark", + "text-size": "60%", + "language": "en", + "text-hg": "none", + "text-font": "Open Sans, sans-serif", + "effects": "hidden", + "code-hg": { + defaultTextHighlight: { + color: 4288341353, + style: 0, + }, + fallbackHighlight: { + color: 4285791231, + style: 0, + }, + bracketHighlight: { + color: 4294921292, + style: 1, + }, + semicolonHighlight: { + color: 4294920266, + style: 1, + }, + functionsHighlights: { + $nomention: { + color: 4294932473, + style: 0, }, - cherryvelvety: { - reactionColor: "#710049", - background: "linear-gradient(-25deg, #240017, #74064d)", + $catch: { + color: 4288905212, + style: 0, }, - forestdepth: { - reactionColor: "#616d00", - background: "linear-gradient(-25deg, #222400, #687406)", + $else: { + color: 4288905212, + style: 0, }, - nightchestnut: { - reactionColor: "#4e0505", - background: "linear-gradient(-25deg, #190024, #740606)", + $elseif: { + color: 4288905212, + style: 0, }, - mosscovered: { - reactionColor: "#4b6d11", - background: "linear-gradient(-25deg, #1c2400, #4c7406)", + $endif: { + color: 4288905212, + style: 0, }, - deepruby: { - reactionColor: "#74066e", - background: "linear-gradient(-25deg, #1f0024, #74066e)", + $endtry: { + color: 4288905212, + style: 0, }, - fernvalley: { - reactionColor: "#1e6d00", - background: "linear-gradient(-25deg, #00240a, #247406)", + $error: { + color: 4288905212, + style: 0, }, - forestshadows: { - reactionColor: "#086b00", - background: "linear-gradient(-25deg, #000624, #086700 , #0a7f01)", + $if: { + color: 4288905212, + style: 0, }, - autumnblaze: { - reactionColor: "#742006", - background: "linear-gradient(-25deg, #240800, #742006)", + $try: { + color: 4288905212, + style: 0, }, - }; - - function setDiscordTheme(colorId) { - const discordMessages = document.getElementsByTagName("discord-messages"); - - const styles = { - reactionColor: "#131318", - messageTextColor: "#DDDEE1", - background: "#000", - ...(DiscordThemes[colorId] || {}), - }; - - const callback = (mutationList, observer) => { - for (const mutation of mutationList) { - if ( - mutation.type === "attributes" && - mutation.attributeName === "class" - ) { - const reactions = - document.getElementsByTagName("discord-reaction"); - const messageColors = document.querySelectorAll( - ".discord-message .discord-message-markup" - ); - - const botToApp = - document.querySelectorAll('.discord-application-tag'); - - if (styles.background) - mutation.target.style.background = styles.background; - mutation.target.style.backgroundColor = styles.exampleColor; - for (const reaction of reactions) { - reaction.children.item(0).style.backgroundColor = - styles.reactionColor; - } - messageColors.forEach((text) => { - text.style.color = styles.messageTextColor; - }); - - botToApp.forEach(tag => { - if (tag.textContent.includes("Bot")) { - tag.textContent = tag.textContent.replace("Bot", "App"); - tag.setAttribute("aria-label", "Verified App"); - } - }); - - const timestamps = document.querySelectorAll( - ".discord-message-timestamp" - ); - timestamps.forEach((timestamp) => { - var time = new Date().getTime(); - var minuteExample = new Date().getMinutes(); - var hourExample = new Date().getHours(); - const formattedMinute = - minuteExample < 10 - ? `0${minuteExample}` - : minuteExample; - const formattedHour = - hourExample < 10 ? `0${hourExample}` : hourExample; - const formattedTime = `Today at ${formattedHour}:${formattedMinute}`; - timestamp.textContent = formattedTime; - }); - } - } - }; - - for (message of discordMessages) { - const mutObv = new MutationObserver(callback); - mutObv.observe(message, { attributes: true }); - } - } - - function applySettings() { - const snowflakes = document.querySelector(".snowflakes"); - - let data; - - try { - data = JSON.parse(localStorage.getItem("json")); - } catch {} - - const defaultData = { - "discord-example-theme": "dark", - "text-size": "60%", - "language": "en", - "text-hg": "none", - "text-font": "Open Sans, sans-serif", - "effects": "hidden", - "code-hg": { - defaultTextHighlight: { - color: 4288341353, - style: 0, - }, - fallbackHighlight: { - color: 4285791231, - style: 0, - }, - bracketHighlight: { - color: 4294921292, - style: 1, - }, - semicolonHighlight: { - color: 4294920266, - style: 1, - }, - functionsHighlights: { - $nomention: { - color: 4294932473, - style: 0, - }, - $catch: { - color: 4288905212, - style: 0, - }, - $else: { - color: 4288905212, - style: 0, - }, - $elseif: { - color: 4288905212, - style: 0, - }, - $endif: { - color: 4288905212, - style: 0, - }, - $endtry: { - color: 4288905212, - style: 0, - }, - $error: { - color: 4288905212, - style: 0, - }, - $if: { - color: 4288905212, - style: 0, - }, - $try: { - color: 4288905212, - style: 0, - }, - }, - }, - }; - - if (!data) localStorage.setItem("json", JSON.stringify(defaultData)); - data ??= defaultData; - - const html = document.querySelector("html"); + }, + }, + }; + + if (!data) localStorage.setItem("json", JSON.stringify(defaultData)); + data ??= defaultData; + + const html = document.querySelector("html"); + + html.style.fontFamily = data["text-font"]; + html.style.fontSize = data["text-size"]; + html.style.textShadow = data["text-hg"]; + + if (snowflakes) { + snowflakes.style.visibility = data["effects"]; + } + + document.querySelectorAll('.chapter > li.chapter-item').forEach(el => { + if (el.querySelector('div')) { + const text = el.querySelector('div').textContent.trim(); + if (text === 'Functions' || text === 'Premium') { + el.classList.add('functions-section'); + } + } + }); + + const currentPath = window.location.pathname; + const currentHref = window.location.href; + + if (currentPath.includes('/tools/')) { + const fileName = currentPath.split('/').pop(); + window.location.replace('https://bdfd-tool.github.io/bdfd-wiki/nightly/tools/' + fileName); + } + else if (currentPath.includes('/terms.html') || currentHref.includes('terms.html')) { + window.location.replace('https://botdesignerdiscord.com/tos'); + } + else { + const allLinks = document.querySelectorAll('a[href]'); + + allLinks.forEach(link => { + const href = link.getAttribute('href'); - html.style.fontFamily = data["text-font"]; - html.style.fontSize = data["text-size"]; - html.style.textShadow = data["text-hg"]; - - if (snowflakes) { - snowflakes.style.visibility = data["effects"]; + if (href) { + if (href.indexOf('../tools/') === 0) { + const newHref = 'https://bdfd-tool.github.io/bdfd-wiki/nightly/tools/' + href.substring(9); + link.setAttribute('href', newHref); } - - document.querySelectorAll('.chapter > li.chapter-item').forEach(el => { - if (el.querySelector('div')) { - const text = el.querySelector('div').textContent.trim(); - if (text === 'Functions' || text === 'Premium') { - el.classList.add('functions-section'); - } - } - }); - const currentPath = window.location.pathname; - const currentHref = window.location.href; - - if (currentPath.includes('/tools/')) { - const fileName = currentPath.split('/').pop(); - window.location.replace('https://bdfd-tool.github.io/bdfd-wiki/nightly/tools/' + fileName); - } - else if (currentPath.includes('/terms.html') || currentHref.includes('terms.html')) { - window.location.replace('https://botdesignerdiscord.com/tos'); - } - else { - const allLinks = document.querySelectorAll('a[href]'); - - allLinks.forEach(link => { - const href = link.getAttribute('href'); - - if (href) { - if (href.indexOf('../tools/') === 0) { - const newHref = 'https://bdfd-tool.github.io/bdfd-wiki/nightly/tools/' + href.substring(9); - link.setAttribute('href', newHref); - } - - if (href.includes('terms.html')) { - link.setAttribute('href', 'https://botdesignerdiscord.com/tos'); - } - } - }); + if (href.includes('terms.html')) { + link.setAttribute('href', 'https://botdesignerdiscord.com/tos'); } - - setDiscordTheme(data["discord-example-theme"]); } - - applySettings(); - } - } catch (error) {} + }); + } + + setDiscordTheme(data["discord-example-theme"]); } -document.addEventListener('DOMContentLoaded', createAndUpdateLastEdit); +document.addEventListener('DOMContentLoaded', function() { + createAndUpdateLastEdit(); + applySettings(); +}); \ No newline at end of file From b09b6ee5207bb5d39b2f83dc3623ee324ec6688b Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 12:21:51 +0300 Subject: [PATCH 078/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index 8f15203fd19..0980c745025 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -1,3 +1,36 @@ +function enhanceNavigationSimple() { + const navWrapper = document.querySelector('.nav-wrapper'); + if (!navWrapper) return; + + const prevLink = navWrapper.querySelector('a.previous'); + const nextLink = navWrapper.querySelector('a.next'); + + if (prevLink && prevLink.href.includes('/bdscript/')) { + const prevFileName = prevLink.href.split('/').pop().replace('.html', ''); + const prevContainer = document.createElement('p'); + prevContainer.className = 'prev-page-info'; + prevContainer.style.cssText = 'font-size:12px;color:#666;margin-top:5px;'; + prevContainer.textContent = `← ${formatFunctionName(prevFileName)}`; + prevLink.parentNode.insertBefore(prevContainer, prevLink.nextSibling); + } + + if (nextLink && nextLink.href.includes('/bdscript/')) { + const nextFileName = nextLink.href.split('/').pop().replace('.html', ''); + const nextContainer = document.createElement('p'); + nextContainer.className = 'next-page-info'; + nextContainer.style.cssText = 'font-size:12px;color:#666;margin-top:5px;text-align:right;'; + nextContainer.textContent = `→ ${formatFunctionName(nextFileName)}`; + nextLink.parentNode.insertBefore(nextContainer, nextLink.nextSibling); + } +} + +function formatFunctionName(fileName) { + return fileName + .replace(/([A-Z])/g, ' $1') + .replace(/^./, str => str.toUpperCase()) + .trim(); +} + async function createAndUpdateLastEdit() { try { const currentPath = window.location.pathname; @@ -366,5 +399,6 @@ function applySettings() { document.addEventListener('DOMContentLoaded', function() { createAndUpdateLastEdit(); + enhanceNavigationSimple(); applySettings(); }); \ No newline at end of file From fc0c0d0b608c37a6c06ec61f8f2fd2a0f32fd472 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 12:25:40 +0300 Subject: [PATCH 079/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index 0980c745025..fd1b6b401e8 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -1,3 +1,4 @@ +// Next function function enhanceNavigationSimple() { const navWrapper = document.querySelector('.nav-wrapper'); if (!navWrapper) return; @@ -25,12 +26,12 @@ function enhanceNavigationSimple() { } function formatFunctionName(fileName) { - return fileName - .replace(/([A-Z])/g, ' $1') - .replace(/^./, str => str.toUpperCase()) - .trim(); + let result = '$' + fileName; + result = result.replace(/Complex$/i, '[]'); + return result; } +// Last edited async function createAndUpdateLastEdit() { try { const currentPath = window.location.pathname; From 321fb672100cc4bc794743ba02c8f6f79c4146f5 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 12:30:58 +0300 Subject: [PATCH 080/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index fd1b6b401e8..f5bc26a9df9 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -6,26 +6,32 @@ function enhanceNavigationSimple() { const prevLink = navWrapper.querySelector('a.previous'); const nextLink = navWrapper.querySelector('a.next'); - if (prevLink && prevLink.href.includes('/bdscript/')) { + if (prevLink && (prevLink.href.includes('/bdscript/') || prevLink.href.includes('/callbacks/'))) { const prevFileName = prevLink.href.split('/').pop().replace('.html', ''); const prevContainer = document.createElement('p'); prevContainer.className = 'prev-page-info'; - prevContainer.style.cssText = 'font-size:12px;color:#666;margin-top:5px;'; - prevContainer.textContent = `← ${formatFunctionName(prevFileName)}`; + prevContainer.textContent = `← ${formatFunctionName(prevFileName, prevLink.href.includes('/callbacks/'))}`; prevLink.parentNode.insertBefore(prevContainer, prevLink.nextSibling); } - if (nextLink && nextLink.href.includes('/bdscript/')) { + if (nextLink && (nextLink.href.includes('/bdscript/') || nextLink.href.includes('/callbacks/'))) { const nextFileName = nextLink.href.split('/').pop().replace('.html', ''); const nextContainer = document.createElement('p'); nextContainer.className = 'next-page-info'; - nextContainer.style.cssText = 'font-size:12px;color:#666;margin-top:5px;text-align:right;'; - nextContainer.textContent = `→ ${formatFunctionName(nextFileName)}`; + nextContainer.textContent = `→ ${formatFunctionName(nextFileName, nextLink.href.includes('/callbacks/'))}`; nextLink.parentNode.insertBefore(nextContainer, nextLink.nextSibling); } } -function formatFunctionName(fileName) { +function formatFunctionName(fileName, isCallback = false) { + if (fileName.toLowerCase() === 'introduction') { + return 'Introduction'; + } + + if (isCallback) { + return fileName.replace(/([A-Z])/g, ' $1').replace(/^./, str => str.toUpperCase()).trim(); + } + let result = '$' + fileName; result = result.replace(/Complex$/i, '[]'); return result; From 153af6189645deeabd3f2f87e35f18b89691c129 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 12:32:03 +0300 Subject: [PATCH 081/275] Update chrome.css --- src/theme/css/chrome.css | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index c195a945900..6daf9bd925d 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -176,6 +176,48 @@ html { text-decoration: none; } +/* ===== Next/Prev page ===== */ +.prev-page-info, +.next-page-info { + font-size: 12px; + color: #666; + margin-top: 5px; + font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; +} + +.prev-page-info { + text-align: left; +} + +.next-page-info { + text-align: right; +} + +@media (max-width: 768px) { + .prev-page-info, + .next-page-info { + font-size: 11px; + margin-top: 3px; + } +} + +.nav-wrapper { + padding: 10px 0; + border-top: 1px solid #eee; + margin-top: 20px; +} + +.mobile-nav-chapters { + display: inline-block; + padding: 8px 12px; + margin: 0 5px; + text-decoration: none; +} + +.mobile-nav-chapters .fa { + font-size: 14px; +} + /* ===== Last edited ===== */ .last_file_edit { From a6610380b9c9b7a22a4b22a9091ea41523dc4f6d Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 12:36:11 +0300 Subject: [PATCH 082/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 39 +++++++++++++++++----------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index f5bc26a9df9..b7c4fbd8fed 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -6,30 +6,39 @@ function enhanceNavigationSimple() { const prevLink = navWrapper.querySelector('a.previous'); const nextLink = navWrapper.querySelector('a.next'); - if (prevLink && (prevLink.href.includes('/bdscript/') || prevLink.href.includes('/callbacks/'))) { - const prevFileName = prevLink.href.split('/').pop().replace('.html', ''); - const prevContainer = document.createElement('p'); - prevContainer.className = 'prev-page-info'; - prevContainer.textContent = `← ${formatFunctionName(prevFileName, prevLink.href.includes('/callbacks/'))}`; - prevLink.parentNode.insertBefore(prevContainer, prevLink.nextSibling); + if (prevLink) { + const href = prevLink.href; + if (href.includes('/bdscript/') || href.includes('/callbacks/') || href.includes('/guides/') || href.includes('/resources/')) { + const prevFileName = href.split('/').pop().replace('.html', ''); + const prevContainer = document.createElement('p'); + prevContainer.className = 'prev-page-info'; + prevContainer.textContent = `← ${formatFunctionName(prevFileName, href)}`; + prevLink.parentNode.insertBefore(prevContainer, prevLink.nextSibling); + } } - if (nextLink && (nextLink.href.includes('/bdscript/') || nextLink.href.includes('/callbacks/'))) { - const nextFileName = nextLink.href.split('/').pop().replace('.html', ''); - const nextContainer = document.createElement('p'); - nextContainer.className = 'next-page-info'; - nextContainer.textContent = `→ ${formatFunctionName(nextFileName, nextLink.href.includes('/callbacks/'))}`; - nextLink.parentNode.insertBefore(nextContainer, nextLink.nextSibling); + if (nextLink) { + const href = nextLink.href; + if (href.includes('/bdscript/') || href.includes('/callbacks/') || href.includes('/guides/') || href.includes('/resources/')) { + const nextFileName = href.split('/').pop().replace('.html', ''); + const nextContainer = document.createElement('p'); + nextContainer.className = 'next-page-info'; + nextContainer.textContent = `→ ${formatFunctionName(nextFileName, href)}`; + nextLink.parentNode.insertBefore(nextContainer, nextLink.nextSibling); + } } } -function formatFunctionName(fileName, isCallback = false) { +function formatFunctionName(fileName, href) { if (fileName.toLowerCase() === 'introduction') { return 'Introduction'; } - if (isCallback) { - return fileName.replace(/([A-Z])/g, ' $1').replace(/^./, str => str.toUpperCase()).trim(); + if (href.includes('/guides/') || href.includes('/resources/')) { + return fileName + .replace(/([A-Z])/g, ' $1') + .replace(/^./, str => str.toUpperCase()) + .trim(); } let result = '$' + fileName; From 986106fb3b1f31dc841602d1db4ba2aa21769212 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 12:39:43 +0300 Subject: [PATCH 083/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index b7c4fbd8fed..4a410d50cf3 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -35,10 +35,16 @@ function formatFunctionName(fileName, href) { } if (href.includes('/guides/') || href.includes('/resources/')) { - return fileName + let result = fileName .replace(/([A-Z])/g, ' $1') .replace(/^./, str => str.toUpperCase()) .trim(); + + result = result.replace(/\bBdfd\b/gi, 'BDFD'); + result = result.replace(/\bId\b/gi, 'ID'); + result = result.replace(/\bAi\b/gi, 'AI'); + + return result; } let result = '$' + fileName; From 2851e3c203e9ce475fd32c50d80fbcdd9ea016a1 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 13:00:10 +0300 Subject: [PATCH 084/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index 4a410d50cf3..30c72e44323 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -36,13 +36,15 @@ function formatFunctionName(fileName, href) { if (href.includes('/guides/') || href.includes('/resources/')) { let result = fileName - .replace(/([A-Z])/g, ' $1') + .replace(/([a-z])([A-Z])/g, '$1 $2') .replace(/^./, str => str.toUpperCase()) .trim(); result = result.replace(/\bBdfd\b/gi, 'BDFD'); - result = result.replace(/\bId\b/gi, 'ID'); - result = result.replace(/\bAi\b/gi, 'AI'); + result = result.replace(/\bId\b/g, 'ID'); + result = result.replace(/\bAi\b/g, 'AI'); + result = result.replace(/\bI D\b/g, 'ID'); + result = result.replace(/\bA I\b/g, 'AI'); return result; } From 919c9b96c5c1690d5a2588c30148555e43fca868 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 13:05:11 +0300 Subject: [PATCH 085/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index 30c72e44323..a55a1c1fe89 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -35,16 +35,30 @@ function formatFunctionName(fileName, href) { } if (href.includes('/guides/') || href.includes('/resources/')) { + const customTitles = { + 'api': 'BDFD API', + '2fa': '2FA', + 'faq': 'FAQ' + }; + + if (customTitles[fileName.toLowerCase()]) { + return customTitles[fileName.toLowerCase()]; + } + let result = fileName .replace(/([a-z])([A-Z])/g, '$1 $2') + .replace(/([A-Z])([A-Z][a-z])/g, '$1 $2') .replace(/^./, str => str.toUpperCase()) .trim(); result = result.replace(/\bBdfd\b/gi, 'BDFD'); + result = result.replace(/\b2fa\b/gi, '2FA'); result = result.replace(/\bId\b/g, 'ID'); result = result.replace(/\bAi\b/g, 'AI'); result = result.replace(/\bI D\b/g, 'ID'); result = result.replace(/\bA I\b/g, 'AI'); + result = result.replace(/\bU I\b/g, 'UI'); + result = result.replace(/\bF A Q\b/g, 'FAQ'); return result; } From b2f2c137264fe66d308b759fc1b00431dc529ac4 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 13:06:50 +0300 Subject: [PATCH 086/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index a55a1c1fe89..0562cc4b563 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -38,7 +38,7 @@ function formatFunctionName(fileName, href) { const customTitles = { 'api': 'BDFD API', '2fa': '2FA', - 'faq': 'FAQ' + 'discordIDSystem': 'Discord ID System' }; if (customTitles[fileName.toLowerCase()]) { From 95dd0617d347bd6c43cc5dfa0808669a51f10a3a Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 14:16:38 +0300 Subject: [PATCH 087/275] Update chrome.css --- src/theme/css/chrome.css | 235 +++++++++++++++++++-------------------- 1 file changed, 117 insertions(+), 118 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 6daf9bd925d..5456165776c 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -175,124 +175,122 @@ html { color: var(--text-primary); text-decoration: none; } - -/* ===== Next/Prev page ===== */ -.prev-page-info, -.next-page-info { - font-size: 12px; - color: #666; - margin-top: 5px; - font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; -} - -.prev-page-info { - text-align: left; -} - -.next-page-info { - text-align: right; -} - -@media (max-width: 768px) { - .prev-page-info, - .next-page-info { - font-size: 11px; - margin-top: 3px; - } -} - -.nav-wrapper { - padding: 10px 0; - border-top: 1px solid #eee; - margin-top: 20px; -} - -.mobile-nav-chapters { - display: inline-block; - padding: 8px 12px; - margin: 0 5px; - text-decoration: none; -} - -.mobile-nav-chapters .fa { - font-size: 14px; -} - -/* ===== Last edited ===== */ - -.last_file_edit { - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; - font-size: 13px; - color: var(--text-secondary); - margin: 20px 0; - padding: 15px; - border: 1px solid rgba(255, 255, 255, 0.05); - background-color: var(--card-bg); - border-radius: var(--border-radius); -} - -.last_file_edit .edit-info { - display: flex; - align-items: center; - gap: 12px; - max-width: 400px; - margin: 0 auto; -} - -.last_file_edit .edit-avatar { - width: 36px; - height: 36px; - border-radius: 50%; - object-fit: cover; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); - flex-shrink: 0; -} - -.last_file_edit .edit-details { - display: flex; - flex-direction: column; - line-height: 1.4; - flex-grow: 1; -} - -.last_file_edit .edit-date-line { - margin-bottom: 3px; -} - -.last_file_edit .edit-date { - color: var(--text-secondary); - font-weight: 600; - font-size: 14px; -} - -.last_file_edit .edit-author-line { - color: var(--text-secondary); -} - -.last_file_edit .edit-author { - font-size: 13px; -} - -@media (max-width: 768px) { - .last_file_edit { - margin: 15px 0; - padding: 12px; - font-size: 12px; - } - - .last_file_edit .edit-avatar { - width: 32px; - height: 32px; - } - - .last_file_edit .edit-date { - font-size: 13px; - } - - .last_file_edit .edit-author { - font-size: 12px; - } -} + +/* ===== Next/Prev page ===== */ +.prev-page-info, +.next-page-info { + font-size: 12px; + color: #666; + margin-top: 5px; + font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; +} + +.prev-page-info { + text-align: left; +} + +.next-page-info { + text-align: right; +} + +@media (max-width: 768px) { + .prev-page-info, + .next-page-info { + font-size: 11px; + margin-top: 3px; + } +} + +.nav-wrapper { + padding: 10px 0; + border-top: 1px solid #eee; + margin-top: 20px; +} + +.mobile-nav-chapters { + display: inline-block; + padding: 8px 12px; + margin: 0 5px; + text-decoration: none; +} + +.mobile-nav-chapters .fa { + font-size: 14px; +} + +/* ===== Last edited ===== */ + +.last_file_edit { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; + font-size: 1rem; + color: var(--text-secondary); + margin: 1rem 0; + padding: 1.3rem; + border: 1px solid rgba(255, 255, 255, 0.05); + background-color: var(--card-bg); + border-radius: var(--border-radius); +} + +.last_file_edit .edit-info { + display: flex; + align-items: center; + gap: 1rem; +} + +.last_file_edit .edit-avatar { + width: 4rem; + height: 4rem; + border-radius: 50%; + object-fit: cover; + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); + flex-shrink: 0; +} + +.last_file_edit .edit-details { + display: flex; + flex-direction: column; + line-height: 1; + flex-grow: 1; +} + +.last_file_edit .edit-date-line { + margin-bottom: .3rem; +} + +.last_file_edit .edit-date { + color: var(--text-secondary); + font-weight: 600; + font-size: 1.45rem; +} + +.last_file_edit .edit-author-line { + color: var(--text-secondary); +} + +.last_file_edit .edit-author { + font-size: 1.3rem; +} + +@media (max-width: 768px) { + .last_file_edit { + margin: 15px 0; + padding: 12px; + font-size: 12px; + } + + .last_file_edit .edit-avatar { + width: 32px; + height: 32px; + } + + .last_file_edit .edit-date { + font-size: 13px; + } + + .last_file_edit .edit-author { + font-size: 12px; + } +} /* ===== Legacy Card Styles ===== */ .commandCard { @@ -1630,3 +1628,4 @@ ul#searchresults span.teaser em { + From 656bed0369e6c9ea053a5f151b7c1d074520b3f8 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 14:26:27 +0300 Subject: [PATCH 088/275] Update chrome.css --- src/theme/css/chrome.css | 77 ++++++++++++++++------------------------ 1 file changed, 30 insertions(+), 47 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 5456165776c..41c1bfb8726 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -176,48 +176,6 @@ html { text-decoration: none; } -/* ===== Next/Prev page ===== */ -.prev-page-info, -.next-page-info { - font-size: 12px; - color: #666; - margin-top: 5px; - font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; -} - -.prev-page-info { - text-align: left; -} - -.next-page-info { - text-align: right; -} - -@media (max-width: 768px) { - .prev-page-info, - .next-page-info { - font-size: 11px; - margin-top: 3px; - } -} - -.nav-wrapper { - padding: 10px 0; - border-top: 1px solid #eee; - margin-top: 20px; -} - -.mobile-nav-chapters { - display: inline-block; - padding: 8px 12px; - margin: 0 5px; - text-decoration: none; -} - -.mobile-nav-chapters .fa { - font-size: 14px; -} - /* ===== Last edited ===== */ .last_file_edit { @@ -820,26 +778,29 @@ a > .hljs { } .mobile-nav-chapters { - font-size: 2.5em; text-align: center; text-decoration: none; - width: 60px; - border-radius: 10px; - background-color: var(--card-bg) !important; color: var(--link-color) !important; } +.mobile-nav-chapters i { + transition: 0.2s; +} + .mobile-nav-chapters:hover i { color: #ded; - transform: scale(1.05); transition: 0.2s; } .previous { float: left; + padding-right: 1.5rem; + margin-top: -.2rem; } .next { + padding-left: 1.5rem; + margin-top: -.2rem; float: right; right: var(--page-padding); } @@ -862,6 +823,27 @@ a > .hljs { } } +.prev-page-info, +.next-page-info { + color: var(--text-secondary); +} + +.prev-page-info { + text-align: left; +} + +.next-page-info { + text-align: right; +} + +@media (max-width: 768px) { + .prev-page-info, + .next-page-info { + font-size: 11px; + margin-top: 3px; + } +} + /* Inline code */ :not(pre) > .hljs { @@ -1629,3 +1611,4 @@ ul#searchresults span.teaser em { + From 31cb9ec3ddacea2e3fea6bc01149164b035592f5 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 14:44:57 +0300 Subject: [PATCH 089/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index 0562cc4b563..9af0f947e60 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -10,10 +10,8 @@ function enhanceNavigationSimple() { const href = prevLink.href; if (href.includes('/bdscript/') || href.includes('/callbacks/') || href.includes('/guides/') || href.includes('/resources/')) { const prevFileName = href.split('/').pop().replace('.html', ''); - const prevContainer = document.createElement('p'); - prevContainer.className = 'prev-page-info'; - prevContainer.textContent = `← ${formatFunctionName(prevFileName, href)}`; - prevLink.parentNode.insertBefore(prevContainer, prevLink.nextSibling); + prevLink.textContent = formatFunctionName(prevFileName, href); + prevLink.insertAdjacentHTML('afterbegin', ' '); } } @@ -21,10 +19,8 @@ function enhanceNavigationSimple() { const href = nextLink.href; if (href.includes('/bdscript/') || href.includes('/callbacks/') || href.includes('/guides/') || href.includes('/resources/')) { const nextFileName = href.split('/').pop().replace('.html', ''); - const nextContainer = document.createElement('p'); - nextContainer.className = 'next-page-info'; - nextContainer.textContent = `→ ${formatFunctionName(nextFileName, href)}`; - nextLink.parentNode.insertBefore(nextContainer, nextLink.nextSibling); + nextLink.textContent = formatFunctionName(nextFileName, href); + nextLink.insertAdjacentHTML('beforeend', ' '); } } } From 72a2c630d3699ea6a203aba56b5392915d65cf4e Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 14:53:48 +0300 Subject: [PATCH 090/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index 9af0f947e60..b352c1bc1c5 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -141,12 +141,17 @@ async function createAndUpdateLastEdit() { const container = document.createElement('div'); container.className = 'last_file_edit'; + const editUrl = `https://github.com/NilPointer-Software/bdfd-wiki/edit/dev/${pagePath}`; + container.innerHTML = `
${authorName}
${authorName} From e924b9e1f5c9837cfcf615f5a021d3a4d6afbd4b Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 15:05:41 +0300 Subject: [PATCH 091/275] Update chrome.css --- src/theme/css/chrome.css | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 41c1bfb8726..bacffce5c15 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -778,29 +778,44 @@ a > .hljs { } .mobile-nav-chapters { + font-size: 1.5rem; text-align: center; text-decoration: none; - color: var(--link-color) !important; + border: 1px solid rgba(255, 255, 255, 0.05); + border-radius: var(--border-radius); + color: var(--text-secondary) !important; + transition: 0.4s; } .mobile-nav-chapters i { - transition: 0.2s; + color: var(--link-color); + background-color: var(--card-bg); + padding: 1rem; + width: 4rem; + border-radius: var(--border-radius); + font-size: 2rem; + transition: 0.4s; } .mobile-nav-chapters:hover i { - color: #ded; - transition: 0.2s; + color: #ded !important; + border-radius: 20px; + transition: 0.4s; +} + +.mobile-nav-chapters:hover { + border: 1px solid rgba(255, 255, 255, 0.1); + border-radius: 20px; + transition: 0.4s; } .previous { float: left; padding-right: 1.5rem; - margin-top: -.2rem; } .next { padding-left: 1.5rem; - margin-top: -.2rem; float: right; right: var(--page-padding); } @@ -839,8 +854,7 @@ a > .hljs { @media (max-width: 768px) { .prev-page-info, .next-page-info { - font-size: 11px; - margin-top: 3px; + font-size: 1rem; } } @@ -1612,3 +1626,4 @@ ul#searchresults span.teaser em { + From 075fd8c5c3bed0054a2d26a4de3888283efe3537 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 15:07:07 +0300 Subject: [PATCH 092/275] Update index.hbs --- src/theme/index.hbs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/theme/index.hbs b/src/theme/index.hbs index a9c967d19ab..315c9c7b5ec 100644 --- a/src/theme/index.hbs +++ b/src/theme/index.hbs @@ -200,10 +200,6 @@ - - - - {{{ content }}} From 788bfe61b17278aae7429517e7c8b3dcc1fdd7dd Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 15:17:08 +0300 Subject: [PATCH 093/275] Update chrome.css --- src/theme/css/chrome.css | 113 ++++++++++++++++++--------------------- 1 file changed, 51 insertions(+), 62 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index bacffce5c15..b9129f70919 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -179,75 +179,77 @@ html { /* ===== Last edited ===== */ .last_file_edit { - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; - font-size: 1rem; - color: var(--text-secondary); - margin: 1rem 0; - padding: 1.3rem; - border: 1px solid rgba(255, 255, 255, 0.05); - background-color: var(--card-bg); - border-radius: var(--border-radius); + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; + font-size: 1rem; + color: var(--text-secondary); + margin: 1rem 0; + padding: 1.3rem; + border: 1px solid rgba(255, 255, 255, 0.05); + background-color: var(--card-bg); + border-radius: var(--border-radius); } .last_file_edit .edit-info { - display: flex; - align-items: center; - gap: 1rem; + display: flex; + align-items: center; + gap: 1rem; } .last_file_edit .edit-avatar { - width: 4rem; - height: 4rem; - border-radius: 50%; - object-fit: cover; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); - flex-shrink: 0; + user-select: none; + -webkit-user-select: none; + width: 4rem; + height: 4rem; + border-radius: 50%; + object-fit: cover; + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); + flex-shrink: 0; } .last_file_edit .edit-details { - display: flex; - flex-direction: column; - line-height: 1; - flex-grow: 1; + display: flex; + flex-direction: column; + line-height: 1; + flex-grow: 1; } .last_file_edit .edit-date-line { - margin-bottom: .3rem; + margin-bottom: .3rem; } .last_file_edit .edit-date { - color: var(--text-secondary); - font-weight: 600; - font-size: 1.45rem; + color: var(--text-secondary); + font-weight: 600; + font-size: 1.45rem; } .last_file_edit .edit-author-line { - color: var(--text-secondary); + color: var(--text-secondary); } .last_file_edit .edit-author { - font-size: 1.3rem; + font-size: 1.3rem; } @media (max-width: 768px) { - .last_file_edit { - margin: 15px 0; - padding: 12px; - font-size: 12px; - } + .last_file_edit { + margin: 15px 0; + padding: 12px; + font-size: 12px; + } - .last_file_edit .edit-avatar { - width: 32px; - height: 32px; - } + .last_file_edit .edit-avatar { + width: 32px; + height: 32px; + } - .last_file_edit .edit-date { - font-size: 13px; - } + .last_file_edit .edit-date { + font-size: 13px; + } - .last_file_edit .edit-author { - font-size: 12px; - } + .last_file_edit .edit-author { + font-size: 12px; + } } /* ===== Legacy Card Styles ===== */ @@ -704,40 +706,26 @@ a > .hljs { .editPage { user-select: none; -webkit-user-select: none; - border: solid; - border-width: 1px; border-radius: 10px; - border-color: var(--card-hover); - color: var(--link-color); + border: 1px solid rgba(255, 255, 255, 0.1); + color: rgba(255, 255, 255, 0.5) !important; width: fit-content; - padding: 5px; + padding: 1rem; text-decoration: none; - margin-top: -2.2rem; + margin-right: 1rem; + margin-top: -1rem; text-align: center; display: block; margin-left: auto; - margin-right: 5px; font-size: 85%; transition: 0.3s; } .editPage:hover { - font-size: 87.5%; - border-radius: 8px; - border-color: var(--link-color); + border-color: rgba(255, 255, 255, 0.2); transition: 0.3s; } -@media (min-width: 750px) { - .editPage:after { - content: "Edit this page"; - } - - #editPageIcon { - padding-right: 0.4rem; - } -} - @media (max-width: 750px) { .editPage { visibility: hidden; @@ -1627,3 +1615,4 @@ ul#searchresults span.teaser em { + From 85b6b20a745475a38ed6d00c09ce2c5c13ca782d Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 15:20:44 +0300 Subject: [PATCH 094/275] Update chrome.css --- src/theme/css/chrome.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index b9129f70919..acb7aa83f6a 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -224,6 +224,7 @@ html { } .last_file_edit .edit-author-line { + margin-top: -2.25rem; color: var(--text-secondary); } @@ -712,8 +713,7 @@ a > .hljs { width: fit-content; padding: 1rem; text-decoration: none; - margin-right: 1rem; - margin-top: -1rem; + margin-top: -2rem; text-align: center; display: block; margin-left: auto; @@ -1616,3 +1616,4 @@ ul#searchresults span.teaser em { + From 5ab479f0ba98fda998a22c82953e689cb143bde1 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 15:21:41 +0300 Subject: [PATCH 095/275] Update chrome.css --- src/theme/css/chrome.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index acb7aa83f6a..0077d0343c2 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -224,7 +224,7 @@ html { } .last_file_edit .edit-author-line { - margin-top: -2.25rem; + margin-top: -1.5rem; color: var(--text-secondary); } @@ -1617,3 +1617,4 @@ ul#searchresults span.teaser em { + From ea76631468416478d409a973c0882caaca7a76ad Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 15:52:13 +0300 Subject: [PATCH 096/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 30 ++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index b352c1bc1c5..6ced52ddc1d 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -8,7 +8,7 @@ function enhanceNavigationSimple() { if (prevLink) { const href = prevLink.href; - if (href.includes('/bdscript/') || href.includes('/callbacks/') || href.includes('/guides/') || href.includes('/resources/')) { + if (href.includes('/bdscript/') || href.includes('/callbacks/') || href.includes('/guides/') || href.includes('/resources/') || href.includes('/flowchart/')) { const prevFileName = href.split('/').pop().replace('.html', ''); prevLink.textContent = formatFunctionName(prevFileName, href); prevLink.insertAdjacentHTML('afterbegin', ' '); @@ -17,7 +17,7 @@ function enhanceNavigationSimple() { if (nextLink) { const href = nextLink.href; - if (href.includes('/bdscript/') || href.includes('/callbacks/') || href.includes('/guides/') || href.includes('/resources/')) { + if (href.includes('/bdscript/') || href.includes('/callbacks/') || href.includes('/guides/') || href.includes('/resources/') || href.includes('/flowchart/')) { const nextFileName = href.split('/').pop().replace('.html', ''); nextLink.textContent = formatFunctionName(nextFileName, href); nextLink.insertAdjacentHTML('beforeend', ' '); @@ -30,10 +30,14 @@ function formatFunctionName(fileName, href) { return 'Introduction'; } - if (href.includes('/guides/') || href.includes('/resources/')) { + if (href.includes('/guides/') || href.includes('/resources/') || href.includes('/flowchart/')) { const customTitles = { 'api': 'BDFD API', '2fa': '2FA', + 'aboutSelectMenu': 'Select Menus', + 'aboutModals': 'Modals', + 'aboutButtons': 'Buttons', + 'aboutSlashCommands': 'Slash Commands', 'discordIDSystem': 'Discord ID System' }; @@ -41,11 +45,21 @@ function formatFunctionName(fileName, href) { return customTitles[fileName.toLowerCase()]; } - let result = fileName - .replace(/([a-z])([A-Z])/g, '$1 $2') - .replace(/([A-Z])([A-Z][a-z])/g, '$1 $2') - .replace(/^./, str => str.toUpperCase()) - .trim(); + let result = fileName; + + if (href.includes('/flowchart/')) { + result = result + .replace(/([a-z])([A-Z])/g, '$1 $2') + .toLowerCase() + .replace(/^./, str => str.toUpperCase()); + } else { + result = result + .replace(/([a-z])([A-Z])/g, '$1 $2') + .replace(/([A-Z])([A-Z][a-z])/g, '$1 $2') + .replace(/^./, str => str.toUpperCase()); + } + + result = result.trim(); result = result.replace(/\bBdfd\b/gi, 'BDFD'); result = result.replace(/\b2fa\b/gi, '2FA'); From 7b9cf9806f63d7ca22c2ce1068282d9f02594751 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 19:16:20 +0300 Subject: [PATCH 097/275] Update general.css --- src/theme/css/general.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/theme/css/general.css b/src/theme/css/general.css index 8e8991b7247..ccb5b4aab9b 100644 --- a/src/theme/css/general.css +++ b/src/theme/css/general.css @@ -44,6 +44,10 @@ code { h1 { margin-top: 2%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + width: 100%; } h2, @@ -206,3 +210,4 @@ blockquote { .tooltipped .tooltiptext { visibility: visible; } + From 1e6ce0e9e6df7d33c7a0325293ea1f8b8a3996cc Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 20:36:14 +0300 Subject: [PATCH 098/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index 6ced52ddc1d..1d035f2f7ed 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -1,3 +1,11 @@ +// Example "Today at" +function removeTimestamp() { + const timestamps = document.querySelectorAll('discord-system-message[type] .discord-message-timestamp'); + timestamps.forEach(timestamp => { + timestamp.remove(); + }); +} + // Next function function enhanceNavigationSimple() { const navWrapper = document.querySelector('.nav-wrapper'); @@ -312,6 +320,8 @@ function setDiscordTheme(colorId) { const formattedTime = `Today at ${formattedHour}:${formattedMinute}`; timestamp.textContent = formattedTime; }); + + removeTimestamp(); } } }; @@ -454,4 +464,4 @@ document.addEventListener('DOMContentLoaded', function() { createAndUpdateLastEdit(); enhanceNavigationSimple(); applySettings(); -}); \ No newline at end of file +}); From 69eeb31f5f58ef702b2f374f17bbcf121c10f88a Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 20:51:53 +0300 Subject: [PATCH 099/275] Update discord-messages.css --- src/theme/css/wiki-themes/discord-messages.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/theme/css/wiki-themes/discord-messages.css b/src/theme/css/wiki-themes/discord-messages.css index b9b486b455c..fafdc77cab1 100644 --- a/src/theme/css/wiki-themes/discord-messages.css +++ b/src/theme/css/wiki-themes/discord-messages.css @@ -208,6 +208,12 @@ transform: scale(1.4); } +.discord-button { + margin-top: -2px; + border-radius: 10px; + border: 1px solid hsl(0deg 0% 100% / 10%); +} + .discord-button.discord-button-secondary { color: #fff !important; } @@ -270,3 +276,4 @@ line-height: 19px; } + From 4a5259ab3d6e520ba269de8dac731ceb1f4c9f04 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 20:59:24 +0300 Subject: [PATCH 100/275] Update chrome.css --- src/theme/css/chrome.css | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 0077d0343c2..ab8429e9cf0 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -808,13 +808,11 @@ a > .hljs { right: var(--page-padding); } -@media only screen and (max-width: 1080px) { - .nav-wide-wrapper { - display: none; - } - .nav-wrapper { - display: block; - } +.nav-wide-wrapper { + display: none; +} +.nav-wrapper { + display: block; } @media only screen and (max-width: 1380px) { @@ -1618,3 +1616,4 @@ ul#searchresults span.teaser em { + From e878a6635f0cea6fefbaff27a1cf901ceaa2ae19 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 21:01:29 +0300 Subject: [PATCH 101/275] Update chrome.css --- src/theme/css/chrome.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index ab8429e9cf0..590818b011f 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -898,6 +898,10 @@ summary.admonition-title { margin-bottom: -1.75rem !important; } +.admonition-anchor-link { + display: none !important; +} + /* Summary */ summary { @@ -1617,3 +1621,4 @@ ul#searchresults span.teaser em { + From 60bd04db6baf531f0e2e152429a61f241fd230e1 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 21:20:49 +0300 Subject: [PATCH 102/275] Update discord-messages.css --- src/theme/css/wiki-themes/discord-messages.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/theme/css/wiki-themes/discord-messages.css b/src/theme/css/wiki-themes/discord-messages.css index fafdc77cab1..b1bfea335e1 100644 --- a/src/theme/css/wiki-themes/discord-messages.css +++ b/src/theme/css/wiki-themes/discord-messages.css @@ -45,12 +45,12 @@ color: #fff; font-size: 12px; margin-left: 4px; - border-radius: 3px; line-height: 100%; text-transform: uppercase; display: flex; + font-weight: bold; align-items: center; - height: 2rem; + height: 1.5rem; padding: 0 0.275rem; margin-top: 0.075em; border-radius: 4px; @@ -277,3 +277,4 @@ } + From ea63874735a77894e88eacd7f4a86199bc83673f Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 21:31:09 +0300 Subject: [PATCH 103/275] Update discord-messages.css --- src/theme/css/wiki-themes/discord-messages.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/theme/css/wiki-themes/discord-messages.css b/src/theme/css/wiki-themes/discord-messages.css index b1bfea335e1..19c38e2a18b 100644 --- a/src/theme/css/wiki-themes/discord-messages.css +++ b/src/theme/css/wiki-themes/discord-messages.css @@ -64,6 +64,12 @@ margin-left: -0.25rem; } +.discord-embed-wrapper { + border-top: 1.5px solid hsl(0deg 0% 50% / 10%) !important; + border-bottom: 1.5px solid hsl(0deg 0% 50% / 10%) !important; + border-right: 1.5px solid hsl(0deg 0% 50% / 10%) !important; +} + .discord-embed .discord-embed-author { -webkit-box-align: center; align-items: center; @@ -278,3 +284,4 @@ + From 9c646f87b57f6ef300b4bf79920f0bf372cdc9c8 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 21:49:29 +0300 Subject: [PATCH 104/275] Update discord-messages.css --- src/theme/css/wiki-themes/discord-messages.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/theme/css/wiki-themes/discord-messages.css b/src/theme/css/wiki-themes/discord-messages.css index 19c38e2a18b..d325b33e08a 100644 --- a/src/theme/css/wiki-themes/discord-messages.css +++ b/src/theme/css/wiki-themes/discord-messages.css @@ -1,7 +1,13 @@ -.discord-message .discord-message-markup, .discord-system-message { +.discord-message .discord-message-markup { font-size: 16px !important; } +.discord-system-message { + user-select: none !important; + -webkit-user-select: none !important; + font-size: 12px !important; +} + .discord-message a { color: #00aff4 !important; } @@ -285,3 +291,4 @@ + From 4af15eaff42b3c224ad9ba476ab7b324305ba629 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:07:07 +0300 Subject: [PATCH 105/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index 1d035f2f7ed..36ed5158ea1 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -1,3 +1,22 @@ +// Params +function formatArgFlags() { + document.querySelectorAll('ul').forEach(ul => { + ul.querySelectorAll('code.hljs').forEach(code => { + const html = code.innerHTML; + + const updated = html.replace( + /\(Type:\s*([^) ]+)\s+Flag:\s*([^) ]+)\)/gi, + '$1 $2' + ); + + if (updated !== html) { + code.innerHTML = updated; + console.log('Updated:', code); + } + }); + }); +} + // Example "Today at" function removeTimestamp() { const timestamps = document.querySelectorAll('discord-system-message[type] .discord-message-timestamp'); @@ -463,5 +482,6 @@ function applySettings() { document.addEventListener('DOMContentLoaded', function() { createAndUpdateLastEdit(); enhanceNavigationSimple(); + formatArgFlags(); applySettings(); }); From b9a5ccf8ae7ccbab754f1c86b9b8559e271a8115 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:19:16 +0300 Subject: [PATCH 106/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index 36ed5158ea1..1d035f2f7ed 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -1,22 +1,3 @@ -// Params -function formatArgFlags() { - document.querySelectorAll('ul').forEach(ul => { - ul.querySelectorAll('code.hljs').forEach(code => { - const html = code.innerHTML; - - const updated = html.replace( - /\(Type:\s*([^) ]+)\s+Flag:\s*([^) ]+)\)/gi, - '$1 $2' - ); - - if (updated !== html) { - code.innerHTML = updated; - console.log('Updated:', code); - } - }); - }); -} - // Example "Today at" function removeTimestamp() { const timestamps = document.querySelectorAll('discord-system-message[type] .discord-message-timestamp'); @@ -482,6 +463,5 @@ function applySettings() { document.addEventListener('DOMContentLoaded', function() { createAndUpdateLastEdit(); enhanceNavigationSimple(); - formatArgFlags(); applySettings(); }); From 14a409d1869f7ace4bb2baab82dde7700b89ccc9 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:20:50 +0300 Subject: [PATCH 107/275] Update chrome.css --- src/theme/css/chrome.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 590818b011f..f94879ac9a1 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -214,7 +214,7 @@ html { } .last_file_edit .edit-date-line { - margin-bottom: .3rem; + margin-bottom: .45rem; } .last_file_edit .edit-date { @@ -1622,3 +1622,4 @@ ul#searchresults span.teaser em { + From 1e36c8481551fb9b94abb18f3b48044da9553ae4 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:28:02 +0300 Subject: [PATCH 108/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index 1d035f2f7ed..ca5fdc7a913 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -1,3 +1,18 @@ +// Container +function createObjectInfo() { + if (/bdscript|callbacks/.test(location.pathname)) { + const h1 = document.querySelector('main h1'); + const p = document.querySelector('main p:not(.breadcrumb p)'); + + if (h1 && p) { + const container = document.createElement('div'); + container.className = 'objectInfo'; + h1.after(container); + container.append(h1, p); + } + } +} + // Example "Today at" function removeTimestamp() { const timestamps = document.querySelectorAll('discord-system-message[type] .discord-message-timestamp'); @@ -463,5 +478,6 @@ function applySettings() { document.addEventListener('DOMContentLoaded', function() { createAndUpdateLastEdit(); enhanceNavigationSimple(); + createObjectInfo(); applySettings(); }); From c3e2cc9cd09ee44ac2c8e38e4ee7cadf960e10a6 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:34:28 +0300 Subject: [PATCH 109/275] Update chrome.css --- src/theme/css/chrome.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index f94879ac9a1..2c4deef7c78 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -43,6 +43,24 @@ html { margin: 0 auto; } +.objectInfo { + border: 1px solid rgba(255, 255, 255, 0.05); + background-color: var(--card-bg); + border-radius: var(--border-radius); + padding: 1rem; + margin-top: 2rem; +} + +.objectInfo h1 { + margin-top: -.1rem; + margin-bottom: -1.2rem; +} + +.objectInfo p { + color: var(--text-secondary); + margin-bottom: 1rem; +} + /* ===== Content Card ===== */ .content-card { background: var(--card-bg); @@ -1623,3 +1641,4 @@ ul#searchresults span.teaser em { + From 8329a4259b1d3b891890e7f587b1c7bb8fd2e952 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:41:21 +0300 Subject: [PATCH 110/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index ca5fdc7a913..f2f4b118999 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -1,17 +1,25 @@ // Container function createObjectInfo() { + if (/introduction/i.test(location.pathname)) return; + if (/bdscript|callbacks/.test(location.pathname)) { const h1 = document.querySelector('main h1'); const p = document.querySelector('main p:not(.breadcrumb p)'); + const tags = document.querySelector('main .functionTags'); if (h1 && p) { const container = document.createElement('div'); container.className = 'objectInfo'; h1.after(container); + container.append(h1, p); + + if (tags) { + container.append(tags); + } } } -} +}} // Example "Today at" function removeTimestamp() { From 1f075817bed7e62ad7a749c02bd69be7973249ec Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:44:18 +0300 Subject: [PATCH 111/275] Update startThread.md --- src/bdscript/startThread.md | 44 ++++++++++++++++++++++++++++++------- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/src/bdscript/startThread.md b/src/bdscript/startThread.md index adbdb3a29c1..ecc94ada385 100644 --- a/src/bdscript/startThread.md +++ b/src/bdscript/startThread.md @@ -3,23 +3,51 @@ Creates a new thread in the provided channel. ## Syntax ``` -$startThread[Name;Channel ID;Message ID;(Archive duration;Return thread/channel ID?)] +$startThread[Thread name;Channel ID;Message ID;(Archive duration;Return thread ID?)] +``` + +```admonish info +Required permissions that the bot must have for this function to work properly: +- `createpublicthreads` ``` ### Parameters -- `Name` `(Type: String || Flag: Required)`: The name of the newly created thread. +- `Thread name` `(Type: String || Flag: Required)`: The name of the newly created thread. - `Channel ID` `(Type: Snowflake || Flag: Required)`: The channel where the thread will be created. - `Message ID` `(Type: Snowflake || Flag: Emptiable)`: The message from which the thread will be created. Can be left empty. -- `Archive duration` `(Type: Integer || Flag: Optional)`: The duration after which the thread will be auto-archived due to inactivity. Accepts `60` (1 hour), `1440` (1 day), `4320` (3 days), or `10080` (7 days) as input. Defaults to `60`. -- `Return thread/channel ID?` `(Type: Bool || Flag: Optional)`: Whether to return the thread channel ID or not. Defaults to `no`. +- `Archive duration` `(Type: Integer || Flag: Optional)`: The [archive duration](#archive-duration) after which the thread will be auto-archived due to inactivity. Defaults to `60`. +- `Return thread ID?` `(Type: Bool || Flag: Optional)`: Whether to return the thread channel ID or not. Defaults to `no`. -### Permissions -Required permissions that the bot must have for this function to work properly: -- `createpublicthreads` +### Archive Duration +`60` - 1 Hour\ +`1440` - 1 Day\ +`4320` - 3 Days (Only for servers with level 1 boosted)\ +`10080` - 7 Days (Only for servers with level 2 boosted) ## Example ``` $nomention I created a new thread! <#$startThread[Cool Thread;$channelID;;1440;yes]> ``` -![example](https://user-images.githubusercontent.com/69215413/128615731-c61c95c1-d1ec-42cf-9964-e8722df30dfe.png) + +``` discord yaml +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example +- type: thread + content: | + BDFD Support Started a thread: Cool Thread. See all threads. +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true + verified: true + content: | + I created a new thread! <#Cool Thread> +``` + +```admonish info title="Read more" +For more information, read the the [Threads Guide](../guides/general/threads.md). +``` From f68d6c0a98a6e083131ac7e463a1e88c45ccac03 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:45:05 +0300 Subject: [PATCH 112/275] Update editThread.md --- src/bdscript/editThread.md | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/src/bdscript/editThread.md b/src/bdscript/editThread.md index bf55d40dcfa..777d7bd93c2 100644 --- a/src/bdscript/editThread.md +++ b/src/bdscript/editThread.md @@ -3,21 +3,44 @@ Modifies an existing thread. ## Syntax ``` -$editThread[Thread ID;(Name;Archived;Archive duration;Locked;Slowmode)] +$editThread[Thread ID;(Thread name;Archived?;Archive duration;Locked?;Slowmode)] ``` ### Parameters - `Thread ID` `(Type: Snowflake || Flag: Required)`: The thread channel to edit. -- `Name` `(Type: String || Flag: Optional)`: The new name of the thread. -- `Archived` `(Type: Bool || Flag: Optional)`: Whether to archive this thread or not. -- `Archive duration` `(Type: Integer || Flag: Optional)`: The archive duration of this thread in minutes. Only 60, 1440,4320, 10080 can be used. Note that for the 4320 archive duration option, the server needs to be level 1 boosted, and for 10080 the server needs level 2. -- `Locked` `(Type: Bool || Flag: Optional)`: Whether to lock this thread or not. Note that archived threads can't be locked. +- `Thread name` `(Type: String || Flag: Optional)`: The new name of the thread. +- `Archived?` `(Type: Bool || Flag: Optional)`: Whether to archive this thread or not. +- `Archive duration` `(Type: Integer || Flag: Optional)`: The [archive duration](#archive-duration) after which the thread will be auto-archived due to inactivity. Defaults to `60`. +- `Locked?` `(Type: Bool || Flag: Optional)`: Whether to lock this thread or not. Note that archived threads can't be locked. - `Slowmode` `(Type: Integer || Flag: Optional)`: The slowmode of this channel, expressed in seconds. -> You can use `!unchanged` as an parameter for the option to remain in its current state. +```admonish tip +Use `!unchanged` as an argument for the option to remain in its current state. +``` + +### Archive Duration +`60` - 1 Hour\ +`1440` - 1 Day\ +`4320` - 3 Days (Only for servers with level 1 boosted)\ +`10080` - 7 Days (Only for servers with level 2 boosted) ## Example ``` $nomention $editThread[1098166444111433819;Cool Thread 😎;no;!unchanged;!unchanged;5] ``` + +``` discord yaml +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example +- type: edit + content: | + BDFD Support changed the channel name: Cool Thread 😎 +``` + +```admonish info title="Read more" +For more information, read the the [Threads Guide](../guides/general/threads.md). +``` From 6c0a82db4dde4b666c8d391ee15a5e4792f2e90e Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:46:21 +0300 Subject: [PATCH 113/275] Update threadAddMember.md --- src/bdscript/threadAddMember.md | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/src/bdscript/threadAddMember.md b/src/bdscript/threadAddMember.md index ceedb6649ef..c1d09109800 100644 --- a/src/bdscript/threadAddMember.md +++ b/src/bdscript/threadAddMember.md @@ -13,14 +13,24 @@ $threadAddMember[Thread ID;User ID] ## Example ``` $nomention -$var[thread;$startThread[Cool Thread;$channelID;;60;yes]] -$threadAddMember[$var[thread];$authorID] +$threadAddMember[1021054508975009793;$authorID] ``` -![example1](https://user-images.githubusercontent.com/69215413/130260166-768cb59f-2377-49e3-9588-6425028484d9.png)\ -![example2](https://user-images.githubusercontent.com/69215413/130260148-0c6b54ec-96ea-4f94-9aee-8a583667d80d.png) -## Related Resources -- [Threads Guide](../guides/threads.md) -- [$editThread](./editThread.md) -- [$startThread](./startThread.md) -- [$threadRemoveMember](./threadRemoveMember.md) +``` discord yaml +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example +``` +- In the thread: + +``` discord yaml +- type: join + content: | + BDFD Support added RainbowKey to the thread. +``` + +```admonish info title="Read more" +For more information, read the the [Threads Guide](../guides/general/threads.md). +``` From 5e8c95c63ed4a788742abb8a5fe5f7240a56d86f Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:46:57 +0300 Subject: [PATCH 114/275] Update threadRemoveMember.md --- src/bdscript/threadRemoveMember.md | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/bdscript/threadRemoveMember.md b/src/bdscript/threadRemoveMember.md index 4b2f405dd91..821c71dfcd2 100644 --- a/src/bdscript/threadRemoveMember.md +++ b/src/bdscript/threadRemoveMember.md @@ -11,14 +11,21 @@ $threadRemoveMember[Thread ID;User ID] - `User ID` `(Type: Snowflake || Flag: Required)`: The user to remove from the thread. ## Example +``` discord yaml +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example ``` -$nomention -$threadRemoveMember[878305123707785218;$authorID] +- In the thread: + +``` discord yaml +- type: leave + content: | + BDFD Support removed RainbowKey from the thread. ``` -![example](https://user-images.githubusercontent.com/69215413/130261147-1d44af9b-a951-4286-88a3-1908702d3fe0.png) -## Related Resources -- [Threads Guide](../guides/threads.md) -- [$editThread](./editThread.md) -- [$startThread](./startThread.md) -- [$threadAddMember](./threadAddMember.md) +```admonish info title="Read more" +For more information, read the the [Threads Guide](../guides/general/threads.md). +``` From 3f9a2456601ecd55044a16ee9e43134e9553ba07 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:48:34 +0300 Subject: [PATCH 115/275] Update threads.md --- src/guides/general/threads.md | 96 +++++++++++++++++++++++++++++++---- 1 file changed, 86 insertions(+), 10 deletions(-) diff --git a/src/guides/general/threads.md b/src/guides/general/threads.md index 6b52af8363b..01aa1779c50 100644 --- a/src/guides/general/threads.md +++ b/src/guides/general/threads.md @@ -1,19 +1,21 @@ # Threads In this section, you'll learn how to integrate threads in your bot. - + ```admonish warning Make sure your bot has `SEND_MESSAGES_IN_THREADS` permission. -``` +``` ## Content -[**Functions Used**](#functions-used) > [**Archive Duration**](#archive-duration) > [**$startThread[]**](#startthread) > [**$editThread[]**](#editthread) > [**$threadAddMember[]**](#threadaddmember) > [**$threadRemoveMember[]**](#threadremovemember) > [**Simple Code**](#simple-code) +[**Functions Used**](#functions-used) > [**Archive Duration**](#archive-duration) > [**$startThread[]**](#startthread) > [**$editThread[]**](#editthread) > [**$threadAddMember[]**](#threadaddmember) > [**$threadRemoveMember[]**](#threadremovemember) > [**$threadUserCount[]**](#threadusercount) > [**$threadMessageCount[]**](#threadmessagecount) > [**Simple Code**](#simple-code) ## Functions Used - [`$startThread[]`](../../bdscript/startThread.md) - [`$editThread[]`](../../bdscript/editThread.md) - [`$threadAddMember`](../../bdscript/threadAddMember.md) - [`$threadRemoveMember[]`](../../bdscript/threadRemoveMember.md) +- [`$threadUserCount`](../../bdscript/threadUserCount.md) +- [`$threadMessageCount[]`](../../bdscript/threadMessageCount.md) ## Archive Duration `60` - 1 Hour\ @@ -28,11 +30,11 @@ Creates a new thread in the provided channel. ``` $startThread[Thread name;Channel ID;Message ID;(Archive duration;Return thread ID?)] ``` - + ```admonish info Required permissions that the bot must have for this function to work properly: - `createpublicthreads` -``` +``` ### Parameters - `Thread name` `(Type: String || Flag: Required)`: The name of the newly created thread. @@ -81,10 +83,10 @@ $editThread[Thread ID;(Thread name;Archived?;Archive duration;Locked?;Slowmode)] - `Archive duration` `(Type: Integer || Flag: Optional)`: The [archive duration](#archive-duration) after which the thread will be auto-archived due to inactivity. Defaults to `60`. - `Locked?` `(Type: Bool || Flag: Optional)`: Whether to lock this thread or not. Note that archived threads can't be locked. - `Slowmode` `(Type: Integer || Flag: Optional)`: The slowmode of this channel, expressed in seconds. - + ```admonish tip Use `!unchanged` as an argument for the option to remain in its current state. -``` +``` ## Example ``` @@ -165,6 +167,79 @@ $threadRemoveMember[Thread ID;User ID] ``` \ +# $threadUserCount +Returns the total number of users in the current thread. + +## Syntax +``` +$threadUserCount +``` + +## Example +``` +$nomention +This thread has $threadUserCount users! +``` + +```discord yaml +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true + verified: true + content: | + This thread has 29 users! +``` + +# $threadMessageCount +Returns the total number of users in the current thread. (**not including bot's response**) + +## Syntax +``` +$threadMessageCount +``` + +## Example +``` +$nomention +This thread has a total of $threadMessageCount messages sent! +``` + +```discord yaml +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + Hello guys! +- user_id: 390515191819010058 + username: kubastick + color: "#FF0000" + content: | + Hello RainbowKey! 👋 +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true + verified: true + content: | + This thread has a total of 3 messages sent! +- user_id: 390515191819010058 + username: kubastick + color: "#FF0000" + content: | + Nice! +``` + # Simple Code ``` $nomention @@ -197,7 +272,8 @@ $threadAddMember[$var[id];$authorID] content: | BDFD Support added RainbowKey to the thread. ``` - -```admonish note + +```admonish note If you want to learn more about threads, read [Discord's support article](https://support.discord.com/hc/en-us/articles/4403205878423-Threads-FAQ). -``` + +``` From 2f5b10b32f8840159164cc77a00bbaa435fb5f50 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:50:34 +0300 Subject: [PATCH 116/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index f2f4b118999..0c6231378d5 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -11,15 +11,11 @@ function createObjectInfo() { const container = document.createElement('div'); container.className = 'objectInfo'; h1.after(container); - container.append(h1, p); - - if (tags) { - container.append(tags); - } + if (tags) container.append(tags); } } -}} +} // Example "Today at" function removeTimestamp() { From 2b6a0ef2b8e298ec3cb7ff1f2f71115d84103175 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:51:46 +0300 Subject: [PATCH 117/275] Update threadUserCount.md --- src/bdscript/threadUserCount.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bdscript/threadUserCount.md b/src/bdscript/threadUserCount.md index b31fd1279da..167e4a02820 100644 --- a/src/bdscript/threadUserCount.md +++ b/src/bdscript/threadUserCount.md @@ -26,3 +26,7 @@ This thread has $threadUserCount users! content: | This thread has 29 users! ``` + +```admonish info title="Read more" +For more information, read the the [Threads Guide](../guides/general/threads.md). +``` From 7973841cc2edc497a753edbbdeb9c9b232dd02e3 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:52:06 +0300 Subject: [PATCH 118/275] Update threadMessageCount.md --- src/bdscript/threadMessageCount.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bdscript/threadMessageCount.md b/src/bdscript/threadMessageCount.md index 7090f210ee9..784d4d3650c 100644 --- a/src/bdscript/threadMessageCount.md +++ b/src/bdscript/threadMessageCount.md @@ -41,3 +41,7 @@ This thread has a total of $threadMessageCount messages sent! content: | Nice! ``` + +```admonish info title="Read more" +For more information, read the the [Threads Guide](../guides/general/threads.md). +``` From 2253790156903769e337ceb88463c43d3884a075 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:54:58 +0300 Subject: [PATCH 119/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index 0c6231378d5..476ead2a809 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -11,8 +11,10 @@ function createObjectInfo() { const container = document.createElement('div'); container.className = 'objectInfo'; h1.after(container); - container.append(h1, p); + + container.append(h1); if (tags) container.append(tags); + container.append(p); } } } From ac283f61bca95a32fd8f786a6daec2dcc09092e6 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 23:10:01 +0300 Subject: [PATCH 120/275] Update SUMMARY.md --- src/SUMMARY.md | 68 +++++++++++++++++++++++++------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 8421707e281..d42f06415c7 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -65,7 +65,7 @@ - [Functions]() - [Introduction](./bdscript/introduction.md) - - [Components]() + - [Component]() - [$addButton](./bdscript/addButton.md) - [$addSelectMenuOption](./bdscript/addSelectMenuOption.md) - [$addSeparator](./bdscript/addSeparator.md) @@ -82,7 +82,7 @@ - [$removeButtons[]](./bdscript/removeButtonsComplex.md) - [$removeComponent](./bdscript/removeComponent.md) - [$defer](./bdscript/defer.md) - - [Embeds]() + - [Embed]() - [$addContainer](./bdscript/addContainer.md) - [$addField](./bdscript/addField.md) - [$addMediaGallery](./bdscript/addMediaGallery.md) @@ -118,6 +118,7 @@ - [$isUserDMEnabled](./bdscript/isUserDMEnabled.md) - [$nickname](./bdscript/nickname.md) - [$nickname[]](./bdscript/nicknameComplex.md) + - [$hypesquad](./bdscript/hypesquad.md) - [$userAvatar](./bdscript/userAvatar.md) - [$userBadges](./bdscript/userBadges.md) - [$userBanner](./bdscript/userBanner.md) @@ -151,7 +152,7 @@ - [$unbanID[]](./bdscript/unbanIDComplex.md) - [$unmute](./bdscript/unmute.md) - [$untimeout](./bdscript/untimeout.md) - - [Channels]() + - [Channel]() - [$afkChannelID](./bdscript/afkChannelID.md) - [$categoryChannels](./bdscript/categoryChannels.md) - [$categoryCount](./bdscript/categoryCount.md) @@ -191,7 +192,7 @@ - [$slowmode](./bdscript/slowmode.md) - [$systemChannelID](./bdscript/systemChannelID.md) - [$voiceUserLimit](./bdscript/voiceUserLimit.md) - - [Roles]() + - [Role]() - [$allowRoleMentions](./bdscript/allowRoleMentions.md) - [$colorRole](./bdscript/colorRole.md) - [$createRole](./bdscript/createRole.md) @@ -225,7 +226,6 @@ - [$userRoles](./bdscript/userRoles.md) - [Bot]() - [$allMembersCount](./bdscript/allMembersCount.md) - - [$awaitFunc](./bdscript/awaitFunc.md) - [$botCommands](./bdscript/botCommands.md) - [$botID](./bdscript/botID.md) - [$botLeave](./bdscript/botLeave.md) @@ -235,32 +235,38 @@ - [$botNode](./bdscript/botNode.md) - [$botOwnerID](./bdscript/botOwnerID.md) - [$botTyping](./bdscript/botTyping.md) - - [$commandFolder](./bdscript/commandFolder.md) - - [$commandName](./bdscript/commandName.md) - - [$commandTrigger](./bdscript/commandTrigger.md) - - [$commandsCount](./bdscript/commandsCount.md) - - [$customID](./bdscript/customID.md) - - [$deletecommand](./bdscript/deletecommand.md) - - [$enabled](./bdscript/enabled.md) - [$getBotInvite](./bdscript/getBotInvite.md) - [$nodeVersion](./bdscript/nodeVersion.md) - [$nodeVersion[]](./bdscript/nodeVersionComplex.md) + - [$hostingExpireTime](./bdscript/hostingExpireTime.md) + - [$hostingExpireTime[]](./bdscript/hostingExpireTimeComplex.md) + - [$premiumExpireTime](./bdscript/premiumExpireTime.md) - [$ping](./bdscript/ping.md) - - [$registerGuildCommands](./bdscript/registerGuildCommands.md) - - [$registerGuildCommands[]](./bdscript/registerGuildCommandsComplex.md) - - [$scriptLanguage](./bdscript/scriptLanguage.md) - [$shardID](./bdscript/shardID.md) - [$shardID[]](./bdscript/shardIDComplex.md) - [$slashCommandsCount](./bdscript/slashCommandsCount.md) - - [$slashID](./bdscript/slashID.md) - - [$slashID[]](./bdscript/slashIDComplex.md) - [$serverCount](./bdscript/serverCount.md) - [$serverNames](./bdscript/serverNames.md) - [$serverNames[]](./bdscript/serverNamesComplex.md) + - [$uptime](./bdscript/uptime.md) + - [Command]() + - [$awaitFunc](./bdscript/awaitFunc.md) + - [$c](./bdscript/c.md) + - [$commandFolder](./bdscript/commandFolder.md) + - [$commandName](./bdscript/commandName.md) + - [$commandTrigger](./bdscript/commandTrigger.md) + - [$commandsCount](./bdscript/commandsCount.md) + - [$customID](./bdscript/customID.md) + - [$nomention](./bdscript/nomention.md) + - [$registerGuildCommands](./bdscript/registerGuildCommands.md) + - [$registerGuildCommands[]](./bdscript/registerGuildCommandsComplex.md) + - [$scriptLanguage](./bdscript/scriptLanguage.md) + - [$slashID](./bdscript/slashID.md) + - [$slashID[]](./bdscript/slashIDComplex.md) + - [$isSlash](./bdscript/isSlash.md) - [$executionTime](./bdscript/executionTime.md) - [$unregisterGuildCommands](./bdscript/unregisterGuildCommands.md) - [$unregisterGuildCommands[]](./bdscript/unregisterGuildCommandsComplex.md) - - [$uptime](./bdscript/uptime.md) - [$eval](./bdscript/eval.md) - [Server]() - [$afkTimeout](./bdscript/afkTimeout.md) @@ -274,7 +280,6 @@ - [$guildExists](./bdscript/guildExists.md) - [$guildID](./bdscript/guildID.md) - [$guildID[]](./bdscript/guildIDComplex.md) - - [$hypesquad](./bdscript/hypesquad.md) - [$membersCount](./bdscript/membersCount.md) - [$membersCount[]](./bdscript/membersCountComplex.md) - [$serverDescription](./bdscript/serverDescription.md) @@ -295,11 +300,8 @@ - [$blackListServers](./bdscript/blackListServers.md) - [$blackListUsers](./bdscript/blackListUsers.md) - [Arguments & Conditions]() - - [$argCount](./bdscript/argCount.md) - [$argsCheck](./bdscript/argsCheck.md) - [$and](./bdscript/and.md) - - [$checkCondition](./bdscript/checkCondition.md) - - [$checkContains](./bdscript/checkContains.md) - [$else](./bdscript/else.md) - [$elseif](./bdscript/elseif.md) - [$endif](./bdscript/endif.md) @@ -307,14 +309,13 @@ - [$isBoolean](./bdscript/isBoolean.md) - [$isInteger](./bdscript/isInteger.md) - [$isNumber](./bdscript/isNumber.md) - - [$isSlash](./bdscript/isSlash.md) - [$isValidHex](./bdscript/isValidHex.md) - [$or](./bdscript/or.md) - [Text]() - - [$alternativeParsing](./bdscript/alternativeParsing.md) + - [$argCount](./bdscript/argCount.md) - [$byteCount](./bdscript/byteCount.md) - - [$c](./bdscript/c.md) - [$charCount](./bdscript/charCount.md) + - [$checkCondition](./bdscript/checkCondition.md) - [$cropText](./bdscript/cropText.md) - [$disableInnerSpaceRemoval](./bdscript/disableInnerSpaceRemoval.md) - [$disableSpecialEscaping](./bdscript/disableSpecialEscaping.md) @@ -322,10 +323,8 @@ - [$getTextSplitIndex](./bdscript/getTextSplitIndex.md) - [$getTextSplitLength](./bdscript/getTextSplitLength.md) - [$joinSplitText](./bdscript/joinSplitText.md) - - [$mentionedChannels](./bdscript/mentionedChannels.md) - [$linesCount](./bdscript/linesCount.md) - [$numberSeparator](./bdscript/numberSeparator.md) - - [$removeContains](./bdscript/removeContains.md) - [$removeSplitTextElement](./bdscript/removeSplitTextElement.md) - [$repeatMessage](./bdscript/repeatMessage.md) - [$replaceText](./bdscript/replaceText.md) @@ -371,22 +370,19 @@ - [$getTimestamp](./bdscript/getTimestamp.md) - [$getTimestamp[]](./bdscript/getTimestampComplex.md) - [$hour](./bdscript/hour.md) - - [$hostingExpireTime](./bdscript/hostingExpireTime.md) - - [$hostingExpireTime[]](./bdscript/hostingExpireTimeComplex.md) - - [$messageEditedTimestamp](./bdscript/messageEditedTimestamp.md) - [$minute](./bdscript/minute.md) - [$month](./bdscript/month.md) - - [$premiumExpireTime](./bdscript/premiumExpireTime.md) - [$second](./bdscript/second.md) - [$time](./bdscript/time.md) - [$year](./bdscript/year.md) - - [Cooldowns]() + - [Cooldown]() - [$changeCooldownTime](./bdscript/changeCooldownTime.md) - [$cooldown](./bdscript/cooldown.md) - [$getCooldown](./bdscript/getCooldown.md) - [$globalCooldown](./bdscript/globalCooldown.md) - [$serverCooldown](./bdscript/serverCooldown.md) - [Message]() + - [$alternativeParsing](./bdscript/alternativeParsing.md) - [$allowMention](./bdscript/allowMention.md) - [$allowUserMentions](./bdscript/allowUserMentions.md) - [$channelSendMessage](./bdscript/channelSendMessage.md) @@ -400,10 +396,10 @@ - [$ephemeral](./bdscript/ephemeral.md) - [$isMentioned](./bdscript/isMentioned.md) - [$mentioned](./bdscript/mentioned.md) - - [$nomention](./bdscript/nomention.md) - [$getAttachments](./bdscript/getAttachments.md) - [$getEmbedData](./bdscript/getEmbedData.md) - [$getMessage](./bdscript/getMessage.md) + - [$messageEditedTimestamp](./bdscript/messageEditedTimestamp.md) - [$isMessageEdited](./bdscript/isMessageEdited.md) - [$ignoreLinks](./bdscript/ignoreLinks.md) - [$message](./bdscript/message.md) @@ -415,6 +411,8 @@ - [$reply](./bdscript/reply.md) - [$reply[]](./bdscript/replyComplex.md) - [$replyIn](./bdscript/replyIn.md) + - [$mentionedChannels](./bdscript/mentionedChannels.md) + - [$removeContains](./bdscript/removeContains.md) - [$repliedMessageID](./bdscript/repliedMessageID.md) - [$repliedMessageID[]](./bdscript/repliedMessageIDComplex.md) - [$removeLinks](./bdscript/removeLinks.md) @@ -423,11 +421,12 @@ - [$noMentionMessage[]](./bdscript/noMentionMessageComplex.md) - [$sendEmbedMessage](./bdscript/sendEmbedMessage.md) - [$sendMessage](./bdscript/sendMessage.md) + - [$deletecommand](./bdscript/deletecommand.md) - [$unpinMessage](./bdscript/unpinMessage.md) - [$useChannel](./bdscript/useChannel.md) - [$tts](./bdscript/tts.md) - [$url](./bdscript/url.md) - - [Variables]() + - [Variable]() - [$getChannelVar](./bdscript/getChannelVar.md) - [$getLeaderboardPosition](./bdscript/getLeaderboardPosition.md) - [$getLeaderboardValue](./bdscript/getLeaderboardValue.md) @@ -444,6 +443,7 @@ - [$setUserVar](./bdscript/setUserVar.md) - [$setVar](./bdscript/setVar.md) - [$userLeaderboard](./bdscript/userLeaderboard.md) + - [$enabled](./bdscript/enabled.md) - [$var](./bdscript/var.md) - [$varExistError](./bdscript/varExistError.md) - [$varExists](./bdscript/varExists.md) From ac5f7709f535cad8ed5c52c003cdd30803d98d4b Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sat, 24 Jan 2026 23:24:26 +0300 Subject: [PATCH 121/275] Update chrome.css --- src/theme/css/chrome.css | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 2c4deef7c78..9a90ca2e3f1 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -344,7 +344,8 @@ html { .functionTags { user-select: none; -webkit-user-select: none; - margin-top: -1rem; + margin-top: 1.5rem; + margin-bottom: -1rem; } .functionTags span { @@ -354,10 +355,9 @@ html { border: solid; border-width: 1px; border-radius: 10px; - font-size: 1.5rem; + font-size: 1rem; font-weight: bold; padding: 0.25rem 0.5rem 0.25rem 0.5rem; - transition: 0.3s; border-color: var(--link-color); color: var(--link-color); } @@ -390,11 +390,6 @@ html { content: "❗ "; } -.functionTags span:hover { - border-radius: 12.5px; - transition: 0.3s; -} - /* Playground */ .function-playground { @@ -1642,3 +1637,4 @@ ul#searchresults span.teaser em { + From b5209b39b48559b353f0f45b764f75ee11676f5e Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sun, 25 Jan 2026 00:24:20 +0300 Subject: [PATCH 122/275] Update clearReactions.md --- src/bdscript/clearReactions.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bdscript/clearReactions.md b/src/bdscript/clearReactions.md index c144367b89a..ce5f5a4073d 100644 --- a/src/bdscript/clearReactions.md +++ b/src/bdscript/clearReactions.md @@ -47,3 +47,7 @@ $clearReactions[$channelID;$message;✅] content: | !example 1216863258708021248 ``` + +```admonish question title="What is this?" +How [`$channelID`](./channelID.md) and [`$message`](./message.md) works? +``` \ No newline at end of file From f91b24d8fdd06fd66a791775c62c68eeaf77db37 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sun, 25 Jan 2026 00:25:22 +0300 Subject: [PATCH 123/275] Update boostCountComplex.md --- src/bdscript/boostCountComplex.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/bdscript/boostCountComplex.md b/src/bdscript/boostCountComplex.md index 1c2fb5fa848..6cddc0384bc 100644 --- a/src/bdscript/boostCountComplex.md +++ b/src/bdscript/boostCountComplex.md @@ -12,13 +12,10 @@ $boostCount[Guild ID] ## Example ``` $nomention -This server currently has $boostCount[$message] boost(s). +Boosts: $boostCount[$message] ``` ```discord yaml -- type: boost - content: | - RainbowKey just boosted the server! - user_id: 803569638084313098 username: RainbowKey color: "#E67E22" @@ -30,5 +27,9 @@ This server currently has $boostCount[$message] boost(s). bot: true verified: true content: | - This server currently has 38 boost(s). + Boosts: 38 +``` + +```admonish question title="What is this?" +How [`$message`](./message.md) works? ``` From 0252f3cb4f7a10c3ca1841f7e74d8906517c3a8e Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sun, 25 Jan 2026 00:25:46 +0300 Subject: [PATCH 124/275] Update boostCount.md --- src/bdscript/boostCount.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/bdscript/boostCount.md b/src/bdscript/boostCount.md index 69ac345847a..8d93eca4ad4 100644 --- a/src/bdscript/boostCount.md +++ b/src/bdscript/boostCount.md @@ -12,7 +12,19 @@ $nomention This server currently has $boostCount boost(s). ``` -```discord yaml +```discord yaml +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true + verified: true + content: | + This server currently has 11 boost(s). - type: boost content: | RainbowKey just boosted the server! From 86d3f0ac7461ba95e47389935beccce60e855687 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sun, 25 Jan 2026 00:29:14 +0300 Subject: [PATCH 125/275] Update customEmoji.md --- src/bdscript/customEmoji.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/bdscript/customEmoji.md b/src/bdscript/customEmoji.md index 49c31c241dc..8e2354a790f 100644 --- a/src/bdscript/customEmoji.md +++ b/src/bdscript/customEmoji.md @@ -1,8 +1,8 @@ # $customEmoji -Returns a custom emoji. +Returns a custom emoji on the current server. ```admonish danger title="Important" -We recommend emoji IDs instead of `$customEmoji[]` **for public** bots. +We recommend emoji IDs instead of `$customEmoji[]` **for public** bots. ``` ## Syntax @@ -16,7 +16,20 @@ $customEmoji[Emoji name] ## Example ``` $nomention -Hello there! $customEmoji[Wave] +Hello bdfd! $customEmoji[BDFD] ``` -![Example](https://user-images.githubusercontent.com/69215413/122825469-fa934f80-d2af-11eb-9563-67552204beb5.png) +``` discord yaml +- user_id: 803569638084313098 + username: RainbowKey + color: "#E67E22" + content: | + !example +- user_id: 1009018156494368798 + username: BDFD Support + color: "#378afa" + bot: true + verified: true + content: | + Hello bdfd! +``` \ No newline at end of file From c74046100254a4a8f1dcf2c26a178ade1fc73c47 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sun, 25 Jan 2026 00:29:55 +0300 Subject: [PATCH 126/275] Update customEmoji.md --- src/bdscript/customEmoji.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bdscript/customEmoji.md b/src/bdscript/customEmoji.md index 8e2354a790f..219a542932d 100644 --- a/src/bdscript/customEmoji.md +++ b/src/bdscript/customEmoji.md @@ -1,7 +1,7 @@ # $customEmoji Returns a custom emoji on the current server. -```admonish danger title="Important" +```admonish warning title="Important" We recommend emoji IDs instead of `$customEmoji[]` **for public** bots. ``` From ed4c5388ae9ea8ed425f3154f633b792963f5654 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sun, 25 Jan 2026 00:31:21 +0300 Subject: [PATCH 127/275] Update isEmojiAnimated.md --- src/bdscript/isEmojiAnimated.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bdscript/isEmojiAnimated.md b/src/bdscript/isEmojiAnimated.md index 41bd20c0cd4..94157c068e4 100644 --- a/src/bdscript/isEmojiAnimated.md +++ b/src/bdscript/isEmojiAnimated.md @@ -16,8 +16,8 @@ Is emoji animated?: $isEmojiAnimated[$message] ``` ``` discord yaml -- user_id: 1262009115689881702 - username: GettingBeatenByKito +- user_id: 803569638084313098 + username: RainbowKey color: "#E67E22" content: | !example 760463263879135242 From 6c0e47a8d349e7bb16ac7aedd0518944035078fb Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sun, 25 Jan 2026 00:32:14 +0300 Subject: [PATCH 128/275] Update emoteCount.md --- src/bdscript/emoteCount.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/bdscript/emoteCount.md b/src/bdscript/emoteCount.md index d67f32074da..b483d60add3 100644 --- a/src/bdscript/emoteCount.md +++ b/src/bdscript/emoteCount.md @@ -9,7 +9,7 @@ $emoteCount ## Example ``` $nomention -There are $emoteCount emojis in $serverName[$guildID]! +There are $emoteCount emojis in this server! ``` ```discord yaml @@ -24,9 +24,5 @@ There are $emoteCount emojis in $serverName[$guildID]! bot: true verified: true content: | - There are 149 emojis in Bot Designer for Discord Official Server! -``` - -```admonish question title="What is this?" -How [`$serverName[]`](./serverName.md) and [`$guildID`](./guildID.md) works? + There are 149 emojis in this server! ``` From 128163bdd0af4195a668ef435f2c735f55620438 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sun, 25 Jan 2026 11:03:01 +0300 Subject: [PATCH 129/275] Update code-hg.js --- src/theme/settings/code-hg.js | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/theme/settings/code-hg.js b/src/theme/settings/code-hg.js index 118f3e6f18a..25510a21c45 100644 --- a/src/theme/settings/code-hg.js +++ b/src/theme/settings/code-hg.js @@ -91,19 +91,19 @@ function fontStyle(style) { function escapeHtml(unsafe) { return unsafe - .replace(/&/g, "&") - .replace(//g, ">") - .replace(/"/g, """); + .replace(/&/g, "&") + .replace(//g, ">") + .replace(/"/g, """); } function highlight(scheme) { const codeBlocks = document.querySelectorAll("pre code"); - // Check if the domain contains "javascript" - if (window.location.href.includes("javascript")) { - return; - } + // Check if the domain contains "javascript" + if (window.location.href.includes("javascript")) { + return; + } try { if (localStorage.getItem("code-hg")) @@ -113,23 +113,24 @@ function highlight(scheme) { codeBlocks.forEach((codeBlock) => { let code = escapeHtml(codeBlock.textContent); - code = code - .replace(/\;/g, styling("semicolonHighlight", scheme)) - .replace(/\[/g, styling("bracketHighlight", scheme)) - .replace(/\]/g, styling("bracketHighlight", scheme)) - .replace(/\$[a-zA-Z]*/g, styling("fallbackHighlight", scheme)) - .replace(/.*/g, styling("defaultTextHighlight", scheme)); - let keys = Object.keys(scheme.functionsHighlights || {}).sort( (a, b) => b.length - a.length ); + keys.forEach((key) => { code = code.replace( - new RegExp(`\\${key}`, "g"), + new RegExp(`\\${key}\\b`, "g"), functionHighlight(key, scheme) ); }); + code = code + .replace(/\;/g, styling("semicolonHighlight", scheme)) + .replace(/\[/g, styling("bracketHighlight", scheme)) + .replace(/\]/g, styling("bracketHighlight", scheme)) + .replace(/\$(?!catch|else|elseif|endif|endtry|error|if|try|nomention\b)[a-zA-Z]+\b/g, styling("fallbackHighlight", scheme)) + .replace(/.*/g, styling("defaultTextHighlight", scheme)); + codeBlock.innerHTML = code; }); } From 9995d1248aeec23756ee135ba747b01e21bda598 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sun, 25 Jan 2026 11:09:14 +0300 Subject: [PATCH 130/275] Update code-hg.js --- src/theme/settings/code-hg.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/theme/settings/code-hg.js b/src/theme/settings/code-hg.js index 25510a21c45..4f7398b48ae 100644 --- a/src/theme/settings/code-hg.js +++ b/src/theme/settings/code-hg.js @@ -55,13 +55,13 @@ const scheme = { }, }; -function functionHighlight(func, scheme) { +function functionHighlight(func, scheme, match) { let color = (scheme.functionsHighlights[func].color & 0xffffff) .toString(16) .padStart(6, "0") .toUpperCase(); let style = fontStyle(scheme.functionsHighlights[func].style); - return `$&`; + return `${match}`; } function styling(type, scheme) { @@ -120,7 +120,7 @@ function highlight(scheme) { keys.forEach((key) => { code = code.replace( new RegExp(`\\${key}\\b`, "g"), - functionHighlight(key, scheme) + (match) => functionHighlight(key, scheme, match) ); }); @@ -129,10 +129,10 @@ function highlight(scheme) { .replace(/\[/g, styling("bracketHighlight", scheme)) .replace(/\]/g, styling("bracketHighlight", scheme)) .replace(/\$(?!catch|else|elseif|endif|endtry|error|if|try|nomention\b)[a-zA-Z]+\b/g, styling("fallbackHighlight", scheme)) - .replace(/.*/g, styling("defaultTextHighlight", scheme)); + .replace(/[^\n]*/g, styling("defaultTextHighlight", scheme)); codeBlock.innerHTML = code; }); } -highlight(scheme); +highlight(scheme); \ No newline at end of file From c52295d972ea8e68de6ac3123031b248345e5a53 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sun, 25 Jan 2026 11:14:05 +0300 Subject: [PATCH 131/275] Update code-hg.js --- src/theme/settings/code-hg.js | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/src/theme/settings/code-hg.js b/src/theme/settings/code-hg.js index 4f7398b48ae..1febff69c4d 100644 --- a/src/theme/settings/code-hg.js +++ b/src/theme/settings/code-hg.js @@ -100,7 +100,6 @@ function escapeHtml(unsafe) { function highlight(scheme) { const codeBlocks = document.querySelectorAll("pre code"); - // Check if the domain contains "javascript" if (window.location.href.includes("javascript")) { return; } @@ -111,8 +110,17 @@ function highlight(scheme) { } catch {} codeBlocks.forEach((codeBlock) => { + const container = document.createElement('div'); + container.className = 'code-container'; + + const lineNumbers = document.createElement('div'); + lineNumbers.className = 'line-numbers'; + + const codeContent = document.createElement('div'); + codeContent.className = 'code-content'; + let code = escapeHtml(codeBlock.textContent); - + let keys = Object.keys(scheme.functionsHighlights || {}).sort( (a, b) => b.length - a.length ); @@ -130,8 +138,26 @@ function highlight(scheme) { .replace(/\]/g, styling("bracketHighlight", scheme)) .replace(/\$(?!catch|else|elseif|endif|endtry|error|if|try|nomention\b)[a-zA-Z]+\b/g, styling("fallbackHighlight", scheme)) .replace(/[^\n]*/g, styling("defaultTextHighlight", scheme)); - - codeBlock.innerHTML = code; + + const lines = code.split('\n'); + + let lineNumbersHTML = ''; + let codeLinesHTML = ''; + + for (let i = 0; i < lines.length; i++) { + const lineNumber = i + 1; + lineNumbersHTML += `
${lineNumber}
`; + codeLinesHTML += `
${lines[i] || ' '}
`; + } + + lineNumbers.innerHTML = lineNumbersHTML; + codeContent.innerHTML = codeLinesHTML; + + container.appendChild(lineNumbers); + container.appendChild(codeContent); + + codeBlock.innerHTML = ''; + codeBlock.appendChild(container); }); } From 24985bcd87fb2685eafc7dde43921f0cfa868658 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sun, 25 Jan 2026 11:18:01 +0300 Subject: [PATCH 132/275] Update code-hg.js --- src/theme/settings/code-hg.js | 113 ++++++++++++++++++++++++---------- 1 file changed, 81 insertions(+), 32 deletions(-) diff --git a/src/theme/settings/code-hg.js b/src/theme/settings/code-hg.js index 1febff69c4d..baefe090ece 100644 --- a/src/theme/settings/code-hg.js +++ b/src/theme/settings/code-hg.js @@ -64,16 +64,8 @@ function functionHighlight(func, scheme, match) { return `${match}`; } -function styling(type, scheme) { - if (scheme[type]) { - let color = (scheme[type].color & 0xffffff) - .toString(16) - .padStart(6, "0") - .toUpperCase(); - let style = fontStyle(scheme[type].style); - return `$&`; - } - return `$&`; +function createStyledSpan(color, style, content) { + return `${content}`; } function fontStyle(style) { @@ -97,6 +89,23 @@ function escapeHtml(unsafe) { .replace(/"/g, """); } +function getColorFromScheme(type, scheme) { + if (scheme[type]) { + return (scheme[type].color & 0xffffff) + .toString(16) + .padStart(6, "0") + .toUpperCase(); + } + return "FFFFFF"; +} + +function getStyleFromScheme(type, scheme) { + if (scheme[type]) { + return fontStyle(scheme[type].style); + } + return fontStyle(0); +} + function highlight(scheme) { const codeBlocks = document.querySelectorAll("pre code"); @@ -119,27 +128,8 @@ function highlight(scheme) { const codeContent = document.createElement('div'); codeContent.className = 'code-content'; - let code = escapeHtml(codeBlock.textContent); - - let keys = Object.keys(scheme.functionsHighlights || {}).sort( - (a, b) => b.length - a.length - ); - - keys.forEach((key) => { - code = code.replace( - new RegExp(`\\${key}\\b`, "g"), - (match) => functionHighlight(key, scheme, match) - ); - }); - - code = code - .replace(/\;/g, styling("semicolonHighlight", scheme)) - .replace(/\[/g, styling("bracketHighlight", scheme)) - .replace(/\]/g, styling("bracketHighlight", scheme)) - .replace(/\$(?!catch|else|elseif|endif|endtry|error|if|try|nomention\b)[a-zA-Z]+\b/g, styling("fallbackHighlight", scheme)) - .replace(/[^\n]*/g, styling("defaultTextHighlight", scheme)); - - const lines = code.split('\n'); + let originalCode = codeBlock.textContent; + const lines = originalCode.split('\n'); let lineNumbersHTML = ''; let codeLinesHTML = ''; @@ -147,7 +137,66 @@ function highlight(scheme) { for (let i = 0; i < lines.length; i++) { const lineNumber = i + 1; lineNumbersHTML += `
${lineNumber}
`; - codeLinesHTML += `
${lines[i] || ' '}
`; + + let line = escapeHtml(lines[i]); + + // Process specific functions first + let keys = Object.keys(scheme.functionsHighlights || {}).sort( + (a, b) => b.length - a.length + ); + + keys.forEach((key) => { + const regex = new RegExp(`\\${key}\\b`, "g"); + line = line.replace(regex, (match) => { + return functionHighlight(key, scheme, match); + }); + }); + + // Process other patterns + // Semicolons + line = line.replace(/;/g, (match) => { + return createStyledSpan( + getColorFromScheme("semicolonHighlight", scheme), + getStyleFromScheme("semicolonHighlight", scheme), + match + ); + }); + + // Brackets + line = line.replace(/\[/g, (match) => { + return createStyledSpan( + getColorFromScheme("bracketHighlight", scheme), + getStyleFromScheme("bracketHighlight", scheme), + match + ); + }); + + line = line.replace(/\]/g, (match) => { + return createStyledSpan( + getColorFromScheme("bracketHighlight", scheme), + getStyleFromScheme("bracketHighlight", scheme), + match + ); + }); + + // Remaining functions not processed earlier + line = line.replace(/\$(?!catch|else|elseif|endif|endtry|error|if|try|nomention\b)[a-zA-Z]+\b/g, (match) => { + return createStyledSpan( + getColorFromScheme("fallbackHighlight", scheme), + getStyleFromScheme("fallbackHighlight", scheme), + match + ); + }); + + // Apply default text highlight to the entire line + // If line is empty, keep it empty + if (line.trim() === '' && line.length === 0) { + codeLinesHTML += `
 
`; + } else { + const defaultColor = getColorFromScheme("defaultTextHighlight", scheme); + const defaultStyle = getStyleFromScheme("defaultTextHighlight", scheme); + codeLinesHTML += `
${line}
`; + } } lineNumbers.innerHTML = lineNumbersHTML; From 153c484108ad19b60663d475e59d05d4caa4e3f7 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sun, 25 Jan 2026 11:28:37 +0300 Subject: [PATCH 133/275] Update code-hg.js --- src/theme/settings/code-hg.js | 71 +++++++++++++++++++++++++---------- 1 file changed, 52 insertions(+), 19 deletions(-) diff --git a/src/theme/settings/code-hg.js b/src/theme/settings/code-hg.js index baefe090ece..1f7098bfe93 100644 --- a/src/theme/settings/code-hg.js +++ b/src/theme/settings/code-hg.js @@ -55,13 +55,13 @@ const scheme = { }, }; -function functionHighlight(func, scheme, match) { +function functionHighlight(func, scheme) { let color = (scheme.functionsHighlights[func].color & 0xffffff) .toString(16) .padStart(6, "0") .toUpperCase(); let style = fontStyle(scheme.functionsHighlights[func].style); - return `${match}`; + return `${func}`; } function createStyledSpan(color, style, content) { @@ -138,22 +138,41 @@ function highlight(scheme) { const lineNumber = i + 1; lineNumbersHTML += `
${lineNumber}
`; - let line = escapeHtml(lines[i]); + let line = lines[i]; + + // Escape HTML first + line = escapeHtml(line); // Process specific functions first let keys = Object.keys(scheme.functionsHighlights || {}).sort( (a, b) => b.length - a.length ); - keys.forEach((key) => { - const regex = new RegExp(`\\${key}\\b`, "g"); - line = line.replace(regex, (match) => { - return functionHighlight(key, scheme, match); + // Create regex pattern for all functions + const functionPattern = new RegExp(`(${keys.map(k => `\\${k}\\b`).join('|')})`, 'g'); + + // Replace all functions at once + if (keys.length > 0) { + line = line.replace(functionPattern, (match) => { + // Find which function was matched + const matchedFunc = keys.find(key => { + const regex = new RegExp(`\\${key}\\b`); + return regex.test(match); + }); + + if (matchedFunc) { + let color = (scheme.functionsHighlights[matchedFunc].color & 0xffffff) + .toString(16) + .padStart(6, "0") + .toUpperCase(); + let style = fontStyle(scheme.functionsHighlights[matchedFunc].style); + return `${match}`; + } + return match; }); - }); - - // Process other patterns - // Semicolons + } + + // Process semicolons line = line.replace(/;/g, (match) => { return createStyledSpan( getColorFromScheme("semicolonHighlight", scheme), @@ -162,7 +181,7 @@ function highlight(scheme) { ); }); - // Brackets + // Process brackets line = line.replace(/\[/g, (match) => { return createStyledSpan( getColorFromScheme("bracketHighlight", scheme), @@ -179,8 +198,17 @@ function highlight(scheme) { ); }); - // Remaining functions not processed earlier - line = line.replace(/\$(?!catch|else|elseif|endif|endtry|error|if|try|nomention\b)[a-zA-Z]+\b/g, (match) => { + // Process remaining functions (not in functionsHighlights) + // First, we need to skip already processed functions + const processedFunctionsPattern = keys.length > 0 + ? new RegExp(`\\$(?!(${keys.map(k => k.substring(1)).join('|')})\\b)[a-zA-Z]+\\b`, 'g') + : /\$[a-zA-Z]+\b/g; + + line = line.replace(processedFunctionsPattern, (match) => { + // Check if this is inside a span tag (already processed) + if (/]*>.*<\/span>/.test(match)) { + return match; + } return createStyledSpan( getColorFromScheme("fallbackHighlight", scheme), getStyleFromScheme("fallbackHighlight", scheme), @@ -188,20 +216,25 @@ function highlight(scheme) { ); }); - // Apply default text highlight to the entire line - // If line is empty, keep it empty + // Wrap the entire line in default styling if it's not empty if (line.trim() === '' && line.length === 0) { codeLinesHTML += `
 
`; } else { - const defaultColor = getColorFromScheme("defaultTextHighlight", scheme); - const defaultStyle = getStyleFromScheme("defaultTextHighlight", scheme); - codeLinesHTML += `
${line}
`; + // Don't wrap in another span if the line already has styling + // Just apply default color to the container + codeLinesHTML += `
${line}
`; } } lineNumbers.innerHTML = lineNumbersHTML; codeContent.innerHTML = codeLinesHTML; + // Apply default text color to the entire code content + const defaultColor = getColorFromScheme("defaultTextHighlight", scheme); + const defaultStyle = getStyleFromScheme("defaultTextHighlight", scheme); + codeContent.style.color = `#${defaultColor}`; + codeContent.style.cssText += `; ${defaultStyle}`; + container.appendChild(lineNumbers); container.appendChild(codeContent); From abc5321e82c4803ac1e92091fc4109450f755f13 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sun, 25 Jan 2026 11:34:35 +0300 Subject: [PATCH 134/275] Update code-hg.js --- src/theme/settings/code-hg.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/theme/settings/code-hg.js b/src/theme/settings/code-hg.js index 1f7098bfe93..8f36ae492b6 100644 --- a/src/theme/settings/code-hg.js +++ b/src/theme/settings/code-hg.js @@ -129,7 +129,18 @@ function highlight(scheme) { codeContent.className = 'code-content'; let originalCode = codeBlock.textContent; - const lines = originalCode.split('\n'); + // Split by newline and remove empty lines at the end + let lines = originalCode.split('\n'); + + // Remove trailing empty lines + while (lines.length > 0 && lines[lines.length - 1].trim() === '') { + lines.pop(); + } + + // If no lines left after removing empty ones, add one empty line + if (lines.length === 0) { + lines = ['']; + } let lineNumbersHTML = ''; let codeLinesHTML = ''; From b94ba583b7076a77d5bd8b382ca1c524c7eb2ccd Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sun, 25 Jan 2026 11:38:33 +0300 Subject: [PATCH 135/275] Update code-hg.js --- src/theme/settings/code-hg.js | 151 +++++++++++++++++----------------- 1 file changed, 75 insertions(+), 76 deletions(-) diff --git a/src/theme/settings/code-hg.js b/src/theme/settings/code-hg.js index 8f36ae492b6..348c8982a4b 100644 --- a/src/theme/settings/code-hg.js +++ b/src/theme/settings/code-hg.js @@ -55,15 +55,6 @@ const scheme = { }, }; -function functionHighlight(func, scheme) { - let color = (scheme.functionsHighlights[func].color & 0xffffff) - .toString(16) - .padStart(6, "0") - .toUpperCase(); - let style = fontStyle(scheme.functionsHighlights[func].style); - return `${func}`; -} - function createStyledSpan(color, style, content) { return `${content}`; } @@ -145,94 +136,104 @@ function highlight(scheme) { let lineNumbersHTML = ''; let codeLinesHTML = ''; + // Get colors and styles for all scheme types + const defaultColor = getColorFromScheme("defaultTextHighlight", scheme); + const defaultStyle = getStyleFromScheme("defaultTextHighlight", scheme); + const bracketColor = getColorFromScheme("bracketHighlight", scheme); + const bracketStyle = getStyleFromScheme("bracketHighlight", scheme); + const semicolonColor = getColorFromScheme("semicolonHighlight", scheme); + const semicolonStyle = getStyleFromScheme("semicolonHighlight", scheme); + const fallbackColor = getColorFromScheme("fallbackHighlight", scheme); + const fallbackStyle = getStyleFromScheme("fallbackHighlight", scheme); + + // Prepare function highlights + const functionHighlights = {}; + let keys = Object.keys(scheme.functionsHighlights || {}).sort( + (a, b) => b.length - a.length + ); + + keys.forEach((key) => { + let color = (scheme.functionsHighlights[key].color & 0xffffff) + .toString(16) + .padStart(6, "0") + .toUpperCase(); + let style = fontStyle(scheme.functionsHighlights[key].style); + functionHighlights[key] = { color, style }; + }); + for (let i = 0; i < lines.length; i++) { const lineNumber = i + 1; lineNumbersHTML += `
${lineNumber}
`; let line = lines[i]; - // Escape HTML first + // Escape HTML first (for plain text parts) line = escapeHtml(line); // Process specific functions first - let keys = Object.keys(scheme.functionsHighlights || {}).sort( - (a, b) => b.length - a.length - ); - - // Create regex pattern for all functions - const functionPattern = new RegExp(`(${keys.map(k => `\\${k}\\b`).join('|')})`, 'g'); - - // Replace all functions at once - if (keys.length > 0) { - line = line.replace(functionPattern, (match) => { - // Find which function was matched - const matchedFunc = keys.find(key => { - const regex = new RegExp(`\\${key}\\b`); - return regex.test(match); - }); - - if (matchedFunc) { - let color = (scheme.functionsHighlights[matchedFunc].color & 0xffffff) - .toString(16) - .padStart(6, "0") - .toUpperCase(); - let style = fontStyle(scheme.functionsHighlights[matchedFunc].style); - return `${match}`; - } - return match; + keys.forEach((key) => { + const regex = new RegExp(`(${key.replace(/\$/g, '\\$')})(?!\\w)`, 'g'); + line = line.replace(regex, (match) => { + const funcData = functionHighlights[key]; + return `${match}`; }); - } - - // Process semicolons - line = line.replace(/;/g, (match) => { - return createStyledSpan( - getColorFromScheme("semicolonHighlight", scheme), - getStyleFromScheme("semicolonHighlight", scheme), - match - ); }); - // Process brackets - line = line.replace(/\[/g, (match) => { - return createStyledSpan( - getColorFromScheme("bracketHighlight", scheme), - getStyleFromScheme("bracketHighlight", scheme), - match - ); + // Process other elements + // Brackets + line = line.replace(/\[/g, () => { + return `[`; }); - line = line.replace(/\]/g, (match) => { - return createStyledSpan( - getColorFromScheme("bracketHighlight", scheme), - getStyleFromScheme("bracketHighlight", scheme), - match - ); + line = line.replace(/\]/g, () => { + return `]`; }); - // Process remaining functions (not in functionsHighlights) - // First, we need to skip already processed functions - const processedFunctionsPattern = keys.length > 0 - ? new RegExp(`\\$(?!(${keys.map(k => k.substring(1)).join('|')})\\b)[a-zA-Z]+\\b`, 'g') - : /\$[a-zA-Z]+\b/g; + // Semicolons + line = line.replace(/;/g, () => { + return `;`; + }); - line = line.replace(processedFunctionsPattern, (match) => { - // Check if this is inside a span tag (already processed) - if (/]*>.*<\/span>/.test(match)) { - return match; + // Remaining functions (not in functionsHighlights) + // Create pattern to match $function names + const remainingFuncPattern = /\$[a-zA-Z]+\b/g; + line = line.replace(remainingFuncPattern, (match) => { + // Skip if already inside a span (already processed) + if (line.indexOf(`/g) || []).length; + + // If we're inside a span, don't wrap again + if (spansBefore > spansClosedBefore) { + return match; + } } - return createStyledSpan( - getColorFromScheme("fallbackHighlight", scheme), - getStyleFromScheme("fallbackHighlight", scheme), - match - ); + + // Check if this is a known function (already processed) + let isKnown = false; + keys.forEach((key) => { + if (match === key) { + isKnown = true; + } + }); + + if (!isKnown) { + return `${match}`; + } + + return match; }); - // Wrap the entire line in default styling if it's not empty + // Add the line to output if (line.trim() === '' && line.length === 0) { codeLinesHTML += `
 
`; } else { - // Don't wrap in another span if the line already has styling - // Just apply default color to the container codeLinesHTML += `
${line}
`; } } @@ -241,8 +242,6 @@ function highlight(scheme) { codeContent.innerHTML = codeLinesHTML; // Apply default text color to the entire code content - const defaultColor = getColorFromScheme("defaultTextHighlight", scheme); - const defaultStyle = getStyleFromScheme("defaultTextHighlight", scheme); codeContent.style.color = `#${defaultColor}`; codeContent.style.cssText += `; ${defaultStyle}`; From b1c81334922b2dbe7f3c856966f89b095afbd19d Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sun, 25 Jan 2026 12:09:58 +0300 Subject: [PATCH 136/275] Update code-hg.js --- src/theme/settings/code-hg.js | 248 ++++++++++++++++++---------------- 1 file changed, 130 insertions(+), 118 deletions(-) diff --git a/src/theme/settings/code-hg.js b/src/theme/settings/code-hg.js index 348c8982a4b..2c42d637a8f 100644 --- a/src/theme/settings/code-hg.js +++ b/src/theme/settings/code-hg.js @@ -55,48 +55,6 @@ const scheme = { }, }; -function createStyledSpan(color, style, content) { - return `${content}`; -} - -function fontStyle(style) { - switch (style) { - case 0: - return "font-style: normal; font-weight: normal;"; - case 1: - return "font-style: normal; font-weight: bold;"; - case 2: - return "font-style: italic; font-weight: normal;"; - case 3: - return "font-style: italic; font-weight: bold;"; - } -} - -function escapeHtml(unsafe) { - return unsafe - .replace(/&/g, "&") - .replace(//g, ">") - .replace(/"/g, """); -} - -function getColorFromScheme(type, scheme) { - if (scheme[type]) { - return (scheme[type].color & 0xffffff) - .toString(16) - .padStart(6, "0") - .toUpperCase(); - } - return "FFFFFF"; -} - -function getStyleFromScheme(type, scheme) { - if (scheme[type]) { - return fontStyle(scheme[type].style); - } - return fontStyle(0); -} - function highlight(scheme) { const codeBlocks = document.querySelectorAll("pre code"); @@ -136,115 +94,169 @@ function highlight(scheme) { let lineNumbersHTML = ''; let codeLinesHTML = ''; - // Get colors and styles for all scheme types - const defaultColor = getColorFromScheme("defaultTextHighlight", scheme); - const defaultStyle = getStyleFromScheme("defaultTextHighlight", scheme); - const bracketColor = getColorFromScheme("bracketHighlight", scheme); - const bracketStyle = getStyleFromScheme("bracketHighlight", scheme); - const semicolonColor = getColorFromScheme("semicolonHighlight", scheme); - const semicolonStyle = getStyleFromScheme("semicolonHighlight", scheme); - const fallbackColor = getColorFromScheme("fallbackHighlight", scheme); - const fallbackStyle = getStyleFromScheme("fallbackHighlight", scheme); + // Prepare colors + const defaultColor = (scheme.defaultTextHighlight.color & 0xffffff).toString(16).padStart(6, "0").toUpperCase(); + const bracketColor = (scheme.bracketHighlight.color & 0xffffff).toString(16).padStart(6, "0").toUpperCase(); + const semicolonColor = (scheme.semicolonHighlight.color & 0xffffff).toString(16).padStart(6, "0").toUpperCase(); + const fallbackColor = (scheme.fallbackHighlight.color & 0xffffff).toString(16).padStart(6, "0").toUpperCase(); - // Prepare function highlights - const functionHighlights = {}; - let keys = Object.keys(scheme.functionsHighlights || {}).sort( - (a, b) => b.length - a.length - ); + // Prepare styles + const defaultStyle = scheme.defaultTextHighlight.style; + const bracketStyle = scheme.bracketHighlight.style; + const semicolonStyle = scheme.semicolonHighlight.style; + const fallbackStyle = scheme.fallbackHighlight.style; - keys.forEach((key) => { - let color = (scheme.functionsHighlights[key].color & 0xffffff) - .toString(16) - .padStart(6, "0") - .toUpperCase(); - let style = fontStyle(scheme.functionsHighlights[key].style); - functionHighlights[key] = { color, style }; + // Prepare function styles + const functionStyles = {}; + Object.keys(scheme.functionsHighlights).forEach(key => { + functionStyles[key] = { + color: (scheme.functionsHighlights[key].color & 0xffffff).toString(16).padStart(6, "0").toUpperCase(), + style: scheme.functionsHighlights[key].style + }; }); + // Function to get style string + function getStyleString(styleNum) { + switch (styleNum) { + case 0: return "font-style: normal; font-weight: normal;"; + case 1: return "font-style: normal; font-weight: bold;"; + case 2: return "font-style: italic; font-weight: normal;"; + case 3: return "font-style: italic; font-weight: bold;"; + default: return "font-style: normal; font-weight: normal;"; + } + } + for (let i = 0; i < lines.length; i++) { const lineNumber = i + 1; lineNumbersHTML += `
${lineNumber}
`; let line = lines[i]; + let resultLine = ''; + let currentPos = 0; - // Escape HTML first (for plain text parts) - line = escapeHtml(line); + // Escape HTML in the line + line = line.replace(/&/g, "&") + .replace(//g, ">") + .replace(/"/g, """); - // Process specific functions first - keys.forEach((key) => { - const regex = new RegExp(`(${key.replace(/\$/g, '\\$')})(?!\\w)`, 'g'); - line = line.replace(regex, (match) => { - const funcData = functionHighlights[key]; - return `${match}`; - }); - }); + // Find all special tokens in the line + const tokens = []; - // Process other elements - // Brackets - line = line.replace(/\[/g, () => { - return `[`; + // Find functions from functionsHighlights + Object.keys(functionStyles).forEach(func => { + const regex = new RegExp(func.replace(/\$/g, '\\$'), 'g'); + let match; + while ((match = regex.exec(line)) !== null) { + tokens.push({ + start: match.index, + end: match.index + func.length, + type: 'function', + value: func, + content: match[0] + }); + } }); - line = line.replace(/\]/g, () => { - return `]`; + // Find brackets + ['[', ']'].forEach(bracket => { + let pos = -1; + while ((pos = line.indexOf(bracket, pos + 1)) !== -1) { + tokens.push({ + start: pos, + end: pos + 1, + type: 'bracket', + value: bracket, + content: bracket + }); + } }); - // Semicolons - line = line.replace(/;/g, () => { - return `;`; - }); + // Find semicolons + let semicolonPos = -1; + while ((semicolonPos = line.indexOf(';', semicolonPos + 1)) !== -1) { + tokens.push({ + start: semicolonPos, + end: semicolonPos + 1, + type: 'semicolon', + value: ';', + content: ';' + }); + } - // Remaining functions (not in functionsHighlights) - // Create pattern to match $function names - const remainingFuncPattern = /\$[a-zA-Z]+\b/g; - line = line.replace(remainingFuncPattern, (match) => { - // Skip if already inside a span (already processed) - if (line.indexOf(`/g) || []).length; - - // If we're inside a span, don't wrap again - if (spansBefore > spansClosedBefore) { - return match; - } - } + // Find other $functions (fallback) + const funcRegex = /\$[a-zA-Z]+\b/g; + let funcMatch; + while ((funcMatch = funcRegex.exec(line)) !== null) { + // Check if this function is already in tokens + const isAlreadyProcessed = tokens.some(token => + token.start === funcMatch.index && token.type === 'function' + ); - // Check if this is a known function (already processed) - let isKnown = false; - keys.forEach((key) => { - if (match === key) { - isKnown = true; - } - }); + if (!isAlreadyProcessed) { + tokens.push({ + start: funcMatch.index, + end: funcMatch.index + funcMatch[0].length, + type: 'fallback', + value: funcMatch[0], + content: funcMatch[0] + }); + } + } + + // Sort tokens by position + tokens.sort((a, b) => a.start - b.start); + + // Build the line with styled tokens + let lastPos = 0; + + tokens.forEach(token => { + // Add plain text before token + if (token.start > lastPos) { + resultLine += line.substring(lastPos, token.start); + } - if (!isKnown) { - return `${match}`; + // Add styled token + let color, style; + switch (token.type) { + case 'function': + color = functionStyles[token.value].color; + style = getStyleString(functionStyles[token.value].style); + break; + case 'bracket': + color = bracketColor; + style = getStyleString(bracketStyle); + break; + case 'semicolon': + color = semicolonColor; + style = getStyleString(semicolonStyle); + break; + case 'fallback': + color = fallbackColor; + style = getStyleString(fallbackStyle); + break; } - return match; + resultLine += `${token.content}`; + lastPos = token.end; }); + // Add remaining plain text + if (lastPos < line.length) { + resultLine += line.substring(lastPos); + } + // Add the line to output if (line.trim() === '' && line.length === 0) { codeLinesHTML += `
 
`; } else { - codeLinesHTML += `
${line}
`; + codeLinesHTML += `
${resultLine}
`; } } lineNumbers.innerHTML = lineNumbersHTML; codeContent.innerHTML = codeLinesHTML; - // Apply default text color to the entire code content - codeContent.style.color = `#${defaultColor}`; - codeContent.style.cssText += `; ${defaultStyle}`; - container.appendChild(lineNumbers); container.appendChild(codeContent); From 50ae50c754a495d7b6a4c1c140f273fdd3262c19 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Sun, 25 Jan 2026 12:32:07 +0300 Subject: [PATCH 137/275] Update chrome.css --- src/theme/css/chrome.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 9a90ca2e3f1..7a39744e244 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -888,7 +888,7 @@ code.hljs:not(.discord-message code) { .nostyle { /* Disabled Code HL style */ - color: inherit !important; + color: var(--text-secondary) !important; font-weight: inherit !important; font-style: normal !important; } From c8a0ab161f802560d54af8318d4f63fb65a8e8b3 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 17:41:08 +0300 Subject: [PATCH 138/275] Update chrome.css --- src/theme/css/chrome.css | 42 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 7a39744e244..848fce4c2ad 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -881,9 +881,44 @@ pre { } code.hljs:not(.discord-message code) { - background: var(--card-bg); - padding: 0.8em; - margin-bottom: -0.5rem; +    background: var(--card-bg); +    margin-bottom: -0.5rem; +} + +.code-container { +    margin-top: -7px; +    margin-bottom: -6px; +    margin-left: -6px; + display: flex; +} + +.line-numbers { + background: hsl(0deg 0% 100% / 3%); + color: var(--text-muted); + padding: 1em 0.5em; + text-align: right; + user-select: none; + min-width: 4rem; + border-right: 1px solid var(--text-muted); +} + +.line-number { + padding: 0 0.5em; + min-height: 1.4em; +} + + +.code-content { +    flex: 1; +    padding: 15px; +    overflow-x: auto; + tab-size: 4; + line-height: 1.4; +} + +.code-line { +    margin-left: -5px !important; + line-height: 1.4; } .nostyle { @@ -1638,3 +1673,4 @@ ul#searchresults span.teaser em { + From bbc92ba626efbcb728fd4daade2839f6b3df6c00 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:10:33 +0300 Subject: [PATCH 139/275] Update chrome.css --- src/theme/css/chrome.css | 45 ++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 848fce4c2ad..d89569696e7 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -881,44 +881,44 @@ pre { } code.hljs:not(.discord-message code) { -    background: var(--card-bg); -    margin-bottom: -0.5rem; + background: var(--card-bg); + margin-bottom: -0.5rem; } .code-container { -    margin-top: -7px; -    margin-bottom: -6px; -    margin-left: -6px; - display: flex; + margin-top: -12px; + margin-bottom: -6px; + margin-left: -6px; + display: flex; } .line-numbers { - background: hsl(0deg 0% 100% / 3%); - color: var(--text-muted); - padding: 1em 0.5em; - text-align: right; - user-select: none; - min-width: 4rem; - border-right: 1px solid var(--text-muted); + background: hsl(0deg 0% 100% / 3%); + color: var(--text-muted); + padding: 1em 0.5em; + text-align: right; + user-select: none; + min-width: 4rem; + border-right: 1px solid var(--text-muted); } .line-number { - padding: 0 0.5em; - min-height: 1.4em; + padding: 0 0.5em; + min-height: 1.4em; } .code-content { -    flex: 1; -    padding: 15px; -    overflow-x: auto; - tab-size: 4; - line-height: 1.4; + flex: 1; + padding: 15px; + overflow-x: auto; + tab-size: 4; + line-height: 1.4; } .code-line { -    margin-left: -5px !important; - line-height: 1.4; + margin-left: -5px !important; + line-height: 1.4; } .nostyle { @@ -1674,3 +1674,4 @@ ul#searchresults span.teaser em { + From b678db40d5c4afafe23c0699b805deb5b79c4ba9 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:20:16 +0300 Subject: [PATCH 140/275] Update book.js --- src/theme/book.js | 51 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 40 insertions(+), 11 deletions(-) diff --git a/src/theme/book.js b/src/theme/book.js index b75236bca88..55f1a0d7a8d 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -272,17 +272,45 @@ if (window.playground_copyable) { })(); (function syntax() { - const syntaxButtons = document.querySelectorAll(".syntax-button"); - syntaxButtons.forEach((hgButton) => { - hgButton.addEventListener("click", (e) => { - const playground = hgButton.closest("pre"); - const codeBlock = playground.querySelector("code"); - const spans = codeBlock.querySelectorAll("span"); - spans.forEach((span) => { - span.classList.toggle("nostyle"); - }); - }); - }); + const syntaxButtons = document.querySelectorAll(".syntax-button"); + syntaxButtons.forEach((hgButton) => { + hgButton.addEventListener("click", (e) => { + const playground = hgButton.closest("pre"); + const codeBlock = playground.querySelector("code"); + const codeLines = codeBlock.querySelectorAll(".code-line"); + + codeLines.forEach((codeLine) => { + codeLine.classList.toggle("nostyle"); + + const walker = document.createTreeWalker( + codeLine, + NodeFilter.SHOW_TEXT, + null, + false + ); + + let node; + while (node = walker.nextNode()) { + if (node.textContent.trim() !== '' && + node.parentNode.nodeType === Node.ELEMENT_NODE && + node.parentNode.tagName !== 'SPAN') { + + const span = document.createElement('span'); + span.className = 'nostyle'; + span.textContent = node.textContent; + node.parentNode.replaceChild(span, node); + } + } + }); + + const spans = codeBlock.querySelectorAll("span"); + spans.forEach((span) => { + if (!span.closest('.code-line')) { + span.classList.toggle("nostyle"); + } + }); + }); + }); })(); (function scrollToTop() { @@ -379,3 +407,4 @@ if (window.playground_copyable) { { passive: true } ); })(); + From bbb409def04a5c53c482c324d828d867e8c2061c Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:30:43 +0300 Subject: [PATCH 141/275] Update code-hg.js --- src/theme/settings/code-hg.js | 266 ++++++++++------------------------ 1 file changed, 77 insertions(+), 189 deletions(-) diff --git a/src/theme/settings/code-hg.js b/src/theme/settings/code-hg.js index 2c42d637a8f..3ff8fc10f70 100644 --- a/src/theme/settings/code-hg.js +++ b/src/theme/settings/code-hg.js @@ -55,6 +55,48 @@ const scheme = { }, }; +function functionHighlight(func, scheme) { + let color = (scheme.functionsHighlights[func].color & 0xffffff) + .toString(16) + .padStart(6, "0") + .toUpperCase(); + let style = fontStyle(scheme.functionsHighlights[func].style); + return `$&`; +} + +function styling(type, scheme) { + if (scheme[type]) { + let color = (scheme[type].color & 0xffffff) + .toString(16) + .padStart(6, "0") + .toUpperCase(); + let style = fontStyle(scheme[type].style); + return `$&`; + } + return `$&`; +} + +function fontStyle(style) { + switch (style) { + case 0: + return "font-style: normal; font-weight: normal;"; + case 1: + return "font-style: normal; font-weight: bold;"; + case 2: + return "font-style: italic; font-weight: normal;"; + case 3: + return "font-style: italic; font-weight: bold;"; + } +} + +function escapeHtml(unsafe) { + return unsafe + .replace(/&/g, "&") + .replace(//g, ">") + .replace(/"/g, """); +} + function highlight(scheme) { const codeBlocks = document.querySelectorAll("pre code"); @@ -68,201 +110,47 @@ function highlight(scheme) { } catch {} codeBlocks.forEach((codeBlock) => { - const container = document.createElement('div'); - container.className = 'code-container'; - - const lineNumbers = document.createElement('div'); - lineNumbers.className = 'line-numbers'; - - const codeContent = document.createElement('div'); - codeContent.className = 'code-content'; - - let originalCode = codeBlock.textContent; - // Split by newline and remove empty lines at the end - let lines = originalCode.split('\n'); - - // Remove trailing empty lines - while (lines.length > 0 && lines[lines.length - 1].trim() === '') { - lines.pop(); - } - - // If no lines left after removing empty ones, add one empty line - if (lines.length === 0) { - lines = ['']; - } - - let lineNumbersHTML = ''; - let codeLinesHTML = ''; - - // Prepare colors - const defaultColor = (scheme.defaultTextHighlight.color & 0xffffff).toString(16).padStart(6, "0").toUpperCase(); - const bracketColor = (scheme.bracketHighlight.color & 0xffffff).toString(16).padStart(6, "0").toUpperCase(); - const semicolonColor = (scheme.semicolonHighlight.color & 0xffffff).toString(16).padStart(6, "0").toUpperCase(); - const fallbackColor = (scheme.fallbackHighlight.color & 0xffffff).toString(16).padStart(6, "0").toUpperCase(); - - // Prepare styles - const defaultStyle = scheme.defaultTextHighlight.style; - const bracketStyle = scheme.bracketHighlight.style; - const semicolonStyle = scheme.semicolonHighlight.style; - const fallbackStyle = scheme.fallbackHighlight.style; - - // Prepare function styles - const functionStyles = {}; - Object.keys(scheme.functionsHighlights).forEach(key => { - functionStyles[key] = { - color: (scheme.functionsHighlights[key].color & 0xffffff).toString(16).padStart(6, "0").toUpperCase(), - style: scheme.functionsHighlights[key].style - }; + let code = escapeHtml(codeBlock.textContent); + + code = code + .replace(/\;/g, styling("semicolonHighlight", scheme)) + .replace(/\[/g, styling("bracketHighlight", scheme)) + .replace(/\]/g, styling("bracketHighlight", scheme)) + .replace(/\$[a-zA-Z]*/g, styling("fallbackHighlight", scheme)) + .replace(/.*/g, styling("defaultTextHighlight", scheme)); + + let keys = Object.keys(scheme.functionsHighlights || {}).sort( + (a, b) => b.length - a.length + ); + keys.forEach((key) => { + code = code.replace( + new RegExp(`\\${key}`, "g"), + functionHighlight(key, scheme) + ); }); + + const lines = code.split('\n'); + const lineCount = lines.length; - // Function to get style string - function getStyleString(styleNum) { - switch (styleNum) { - case 0: return "font-style: normal; font-weight: normal;"; - case 1: return "font-style: normal; font-weight: bold;"; - case 2: return "font-style: italic; font-weight: normal;"; - case 3: return "font-style: italic; font-weight: bold;"; - default: return "font-style: normal; font-weight: normal;"; - } + let lineNumbersHtml = ''; + for (let i = 1; i <= lineCount; i++) { + lineNumbersHtml += `
${i}
`; } - for (let i = 0; i < lines.length; i++) { - const lineNumber = i + 1; - lineNumbersHTML += `
${lineNumber}
`; - - let line = lines[i]; - let resultLine = ''; - let currentPos = 0; - - // Escape HTML in the line - line = line.replace(/&/g, "&") - .replace(//g, ">") - .replace(/"/g, """); - - // Find all special tokens in the line - const tokens = []; - - // Find functions from functionsHighlights - Object.keys(functionStyles).forEach(func => { - const regex = new RegExp(func.replace(/\$/g, '\\$'), 'g'); - let match; - while ((match = regex.exec(line)) !== null) { - tokens.push({ - start: match.index, - end: match.index + func.length, - type: 'function', - value: func, - content: match[0] - }); - } - }); - - // Find brackets - ['[', ']'].forEach(bracket => { - let pos = -1; - while ((pos = line.indexOf(bracket, pos + 1)) !== -1) { - tokens.push({ - start: pos, - end: pos + 1, - type: 'bracket', - value: bracket, - content: bracket - }); - } - }); - - // Find semicolons - let semicolonPos = -1; - while ((semicolonPos = line.indexOf(';', semicolonPos + 1)) !== -1) { - tokens.push({ - start: semicolonPos, - end: semicolonPos + 1, - type: 'semicolon', - value: ';', - content: ';' - }); - } - - // Find other $functions (fallback) - const funcRegex = /\$[a-zA-Z]+\b/g; - let funcMatch; - while ((funcMatch = funcRegex.exec(line)) !== null) { - // Check if this function is already in tokens - const isAlreadyProcessed = tokens.some(token => - token.start === funcMatch.index && token.type === 'function' - ); - - if (!isAlreadyProcessed) { - tokens.push({ - start: funcMatch.index, - end: funcMatch.index + funcMatch[0].length, - type: 'fallback', - value: funcMatch[0], - content: funcMatch[0] - }); - } - } - - // Sort tokens by position - tokens.sort((a, b) => a.start - b.start); - - // Build the line with styled tokens - let lastPos = 0; - - tokens.forEach(token => { - // Add plain text before token - if (token.start > lastPos) { - resultLine += line.substring(lastPos, token.start); - } - - // Add styled token - let color, style; - switch (token.type) { - case 'function': - color = functionStyles[token.value].color; - style = getStyleString(functionStyles[token.value].style); - break; - case 'bracket': - color = bracketColor; - style = getStyleString(bracketStyle); - break; - case 'semicolon': - color = semicolonColor; - style = getStyleString(semicolonStyle); - break; - case 'fallback': - color = fallbackColor; - style = getStyleString(fallbackStyle); - break; - } - - resultLine += `${token.content}`; - lastPos = token.end; - }); - - // Add remaining plain text - if (lastPos < line.length) { - resultLine += line.substring(lastPos); - } - - // Add the line to output - if (line.trim() === '' && line.length === 0) { - codeLinesHTML += `
 
`; - } else { - codeLinesHTML += `
${resultLine}
`; + const formattedCode = lines.map(line => { + if (line.trim() === '') { + return '
 
'; } - } - - lineNumbers.innerHTML = lineNumbersHTML; - codeContent.innerHTML = codeLinesHTML; - - container.appendChild(lineNumbers); - container.appendChild(codeContent); + return `
${line}
`; + }).join(''); - codeBlock.innerHTML = ''; - codeBlock.appendChild(container); + codeBlock.innerHTML = ` +
+
${lineNumbersHtml}
+
${formattedCode}
+
+ `; }); } -highlight(scheme); \ No newline at end of file +highlight(scheme); From 3190918d62a3ce61f8bc3f2d1fc1fd37112e49ed Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:32:03 +0300 Subject: [PATCH 142/275] Update book.js --- src/theme/book.js | 51 +++++++++++------------------------------------ 1 file changed, 12 insertions(+), 39 deletions(-) diff --git a/src/theme/book.js b/src/theme/book.js index 55f1a0d7a8d..a73e069412c 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -272,45 +272,17 @@ if (window.playground_copyable) { })(); (function syntax() { - const syntaxButtons = document.querySelectorAll(".syntax-button"); - syntaxButtons.forEach((hgButton) => { - hgButton.addEventListener("click", (e) => { - const playground = hgButton.closest("pre"); - const codeBlock = playground.querySelector("code"); - const codeLines = codeBlock.querySelectorAll(".code-line"); - - codeLines.forEach((codeLine) => { - codeLine.classList.toggle("nostyle"); - - const walker = document.createTreeWalker( - codeLine, - NodeFilter.SHOW_TEXT, - null, - false - ); - - let node; - while (node = walker.nextNode()) { - if (node.textContent.trim() !== '' && - node.parentNode.nodeType === Node.ELEMENT_NODE && - node.parentNode.tagName !== 'SPAN') { - - const span = document.createElement('span'); - span.className = 'nostyle'; - span.textContent = node.textContent; - node.parentNode.replaceChild(span, node); - } - } - }); - - const spans = codeBlock.querySelectorAll("span"); - spans.forEach((span) => { - if (!span.closest('.code-line')) { - span.classList.toggle("nostyle"); - } - }); - }); - }); + const syntaxButtons = document.querySelectorAll(".syntax-button"); + syntaxButtons.forEach((hgButton) => { + hgButton.addEventListener("click", (e) => { + const playground = hgButton.closest("pre"); + const codeBlock = playground.querySelector("code"); + const spans = codeBlock.querySelectorAll("span"); + spans.forEach((span) => { + span.classList.toggle("nostyle"); + }); + }); + }); })(); (function scrollToTop() { @@ -408,3 +380,4 @@ if (window.playground_copyable) { ); })(); + From c10f0c1b48917f93b10aabbb897b0c67c71e66e0 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:36:27 +0300 Subject: [PATCH 143/275] Update chrome.css --- src/theme/css/chrome.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index d89569696e7..b817cad956e 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -886,8 +886,8 @@ code.hljs:not(.discord-message code) { } .code-container { - margin-top: -12px; - margin-bottom: -6px; + margin-top: -47px; + margin-bottom: -40px; margin-left: -6px; display: flex; } @@ -1675,3 +1675,4 @@ ul#searchresults span.teaser em { + From ba0c199b22a8fe1e5e60385c409033e450b69b4c Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:37:20 +0300 Subject: [PATCH 144/275] Update code-hg.js --- src/theme/settings/code-hg.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/theme/settings/code-hg.js b/src/theme/settings/code-hg.js index 3ff8fc10f70..00432f18212 100644 --- a/src/theme/settings/code-hg.js +++ b/src/theme/settings/code-hg.js @@ -130,17 +130,15 @@ function highlight(scheme) { }); const lines = code.split('\n'); - const lineCount = lines.length; + const filteredLines = lines.filter(line => line.trim() !== '' || lines.length === 1); + const lineCount = filteredLines.length; let lineNumbersHtml = ''; for (let i = 1; i <= lineCount; i++) { lineNumbersHtml += `
${i}
`; } - const formattedCode = lines.map(line => { - if (line.trim() === '') { - return '
 
'; - } + const formattedCode = filteredLines.map(line => { return `
${line}
`; }).join(''); From 54a93219f21f0c8234614798cc3034e4de2dee71 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:42:34 +0300 Subject: [PATCH 145/275] Update settings.md --- src/settings.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/settings.md b/src/settings.md index 84f73461c17..3f0bd641e35 100644 --- a/src/settings.md +++ b/src/settings.md @@ -1,13 +1,4 @@ -
- - - Experimental Feature! - If you encountered an error, please contact us on the official BDFD Support Server. - -
- # Settings - Let's customize your experience in our Bot Designer For Discord wiki world! @@ -43,15 +34,6 @@ Let's customize your experience in our Bot Designer For Discord wiki world!
-
-

Effects

-

It's only decoration for wiki.

-
- -
-

"Enable" (Disabled)

-
-

Discord Example

Let’s give our Discord example previews a color makeover to make them look better.

From 78ac9461e6386d6d794a70853e6865df97f2035d Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:42:56 +0300 Subject: [PATCH 146/275] Update style.css --- src/theme/settings/style.css | 40 ------------------------------------ 1 file changed, 40 deletions(-) diff --git a/src/theme/settings/style.css b/src/theme/settings/style.css index 6f79d0b787a..91d5af96d6e 100644 --- a/src/theme/settings/style.css +++ b/src/theme/settings/style.css @@ -8,46 +8,6 @@ body { visibility: hidden; } -/* Tag Beta Feature */ - -.tag-beta { - user-select: none; - -webkit-user-select: none; - border-style: solid; - border-color: rgba(255, 255, 255, 0.1); - margin: auto; - margin-top: 15px; - width: fit-content; - padding: 10px 10px; - border-width: 1px; - border-radius: 10px; - display: flex; - align-items: center; - background: var(--card-bg); -} - -.tag-beta .warn { - font-size: 2.25em; - margin-right: 7.5px; -} - -.tag-beta .text { - display: flex; - flex-direction: column; - align-items: flex-start; - margin-bottom: 5px; -} - -.tag-beta .head { - font-weight: bold; - margin-bottom: 2.5px; - font-size: 1.1em; -} - -.tag-beta .desc { - font-size: 0.9em; -} - /* Discord Message Preview*/ .discord-messages { From 06fc9e6afd830206a0a2e7f7c4a08f5e0e1591cb Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:43:32 +0300 Subject: [PATCH 147/275] Update apply-settings.js --- src/theme/settings/apply-settings.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/theme/settings/apply-settings.js b/src/theme/settings/apply-settings.js index 476ead2a809..7c1d07050d3 100644 --- a/src/theme/settings/apply-settings.js +++ b/src/theme/settings/apply-settings.js @@ -368,7 +368,6 @@ function applySettings() { "language": "en", "text-hg": "none", "text-font": "Open Sans, sans-serif", - "effects": "hidden", "code-hg": { defaultTextHighlight: { color: 4288341353, @@ -435,10 +434,6 @@ function applySettings() { html.style.fontFamily = data["text-font"]; html.style.fontSize = data["text-size"]; html.style.textShadow = data["text-hg"]; - - if (snowflakes) { - snowflakes.style.visibility = data["effects"]; - } document.querySelectorAll('.chapter > li.chapter-item').forEach(el => { if (el.querySelector('div')) { From 3a8499d83d07fb2b242f190930a653332d548bdf Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:44:18 +0300 Subject: [PATCH 148/275] Update index.js --- src/theme/settings/index.js | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/theme/settings/index.js b/src/theme/settings/index.js index 86a50eedaa9..7d00e7c2588 100644 --- a/src/theme/settings/index.js +++ b/src/theme/settings/index.js @@ -151,26 +151,6 @@ function changeDiscordTheme(colorId) { updateJsonFile("discord-example-theme", colorId); } -function effectsSetting() { - const manageEffectButton = document.getElementById("manageEffect"); - const snowflakes = document.querySelector(".snowflakes"); - let inv = JSON.parse(localStorage.getItem("json")); - - if (inv["effects"] === "hidden") { - // Enabled - var effectStatus = "Disable"; - var boolEffectStatus = "visible"; - } else { - // Disabled - var effectStatus = "Enable"; - var boolEffectStatus = "hidden"; - } - - snowflakes.style.visibility = boolEffectStatus; - manageEffectButton.textContent = effectStatus; - updateJsonFile("effects", boolEffectStatus); -} - function changeTextFont(fontId) { const fontHtml = document.querySelector("html"); let font = fonts[fontId] || "Open Sans, sans-serif"; @@ -344,7 +324,6 @@ function loadSettings() { const range = document.getElementById("textsize"); const codeTextInput = document.getElementById("jsonhginput"); const charCountElement = document.querySelector(".charCount"); - const uiManageEffectButton = document.getElementById("manageEffect"); const uiSnowflakes = document.querySelector(".snowflakes"); let data; @@ -359,7 +338,6 @@ function loadSettings() { "language": "en", "text-hg": "none", "text-font": "Open Sans, sans-serif", - "effects": "hidden", "code-hg": { defaultTextHighlight: { color: 4288341353, @@ -438,15 +416,6 @@ function loadSettings() { range.value = parseInt(data["text-size"].replace("%", "")); } - if (data["effects"] === "hidden") { - var effectStatus = "Enable"; - } else { - var effectStatus = "Disable"; - } - - uiSnowflakes.style.visibility = data["effects"]; - uiManageEffectButton.textContent = effectStatus; - const button = document.querySelector(".resetToDefault"); button.addEventListener("mousedown", resetAllHover); button.addEventListener("mouseup", resettAllNone); From 552e5c479e9fd1ffc989186d915a13e14211e77c Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:49:34 +0300 Subject: [PATCH 149/275] Update code-hg.js --- src/theme/settings/code-hg.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/theme/settings/code-hg.js b/src/theme/settings/code-hg.js index 00432f18212..eafef01a16b 100644 --- a/src/theme/settings/code-hg.js +++ b/src/theme/settings/code-hg.js @@ -130,15 +130,26 @@ function highlight(scheme) { }); const lines = code.split('\n'); - const filteredLines = lines.filter(line => line.trim() !== '' || lines.length === 1); - const lineCount = filteredLines.length; + + const cleanLines = []; + for (let i = 0; i < lines.length; i++) { + if (i === lines.length - 1 && lines[i] === '') { + continue; + } + cleanLines.push(lines[i]); + } + + const lineCount = cleanLines.length; let lineNumbersHtml = ''; for (let i = 1; i <= lineCount; i++) { lineNumbersHtml += `
${i}
`; } - const formattedCode = filteredLines.map(line => { + const formattedCode = cleanLines.map(line => { + if (line.trim() === '') { + return '
 
'; + } return `
${line}
`; }).join(''); From c53d5e3242542ac84844633428c72eb0d02822e2 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 19:00:09 +0300 Subject: [PATCH 150/275] Update code-hg.js --- src/theme/settings/code-hg.js | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/theme/settings/code-hg.js b/src/theme/settings/code-hg.js index eafef01a16b..279b1ffed06 100644 --- a/src/theme/settings/code-hg.js +++ b/src/theme/settings/code-hg.js @@ -110,7 +110,10 @@ function highlight(scheme) { } catch {} codeBlocks.forEach((codeBlock) => { - let code = escapeHtml(codeBlock.textContent); + let originalText = codeBlock.textContent; + originalText = originalText.replace(/\n+$/, ''); + + let code = escapeHtml(originalText); code = code .replace(/\;/g, styling("semicolonHighlight", scheme)) @@ -130,23 +133,14 @@ function highlight(scheme) { }); const lines = code.split('\n'); - - const cleanLines = []; - for (let i = 0; i < lines.length; i++) { - if (i === lines.length - 1 && lines[i] === '') { - continue; - } - cleanLines.push(lines[i]); - } - - const lineCount = cleanLines.length; + const lineCount = lines.length; let lineNumbersHtml = ''; for (let i = 1; i <= lineCount; i++) { lineNumbersHtml += `
${i}
`; } - const formattedCode = cleanLines.map(line => { + const formattedCode = lines.map(line => { if (line.trim() === '') { return '
 
'; } From 11fe043ad1f02c401913da2528b27fcebcac6adc Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 19:07:32 +0300 Subject: [PATCH 151/275] Update chrome.css --- src/theme/css/chrome.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index b817cad956e..3fd3babfa97 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -887,7 +887,7 @@ code.hljs:not(.discord-message code) { .code-container { margin-top: -47px; - margin-bottom: -40px; + margin-bottom: -42px; margin-left: -6px; display: flex; } @@ -898,6 +898,7 @@ code.hljs:not(.discord-message code) { padding: 1em 0.5em; text-align: right; user-select: none; + -webkit-user-select: none; min-width: 4rem; border-right: 1px solid var(--text-muted); } @@ -1676,3 +1677,4 @@ ul#searchresults span.teaser em { + From dc29e84dbb736fc0674eca52436e7caca27e42c8 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 19:17:47 +0300 Subject: [PATCH 152/275] Update book.js --- src/theme/book.js | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/src/theme/book.js b/src/theme/book.js index a73e069412c..785ae3b170f 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -257,18 +257,31 @@ if (window.playground_copyable) { })(); (function wrap() { - const wrapButtons = document.querySelectorAll(".wrap-button"); - wrapButtons.forEach((button) => { - button.addEventListener("click", (e) => { - const playground = button.closest("pre"); - const codeBlock = playground.querySelector("code"); - if (codeBlock.style.whiteSpace == "pre-wrap") { - codeBlock.style.whiteSpace = "pre"; - } else { - codeBlock.style.whiteSpace = "pre-wrap"; - } - }); - }); + const wrapButtons = document.querySelectorAll(".wrap-button"); + wrapButtons.forEach((button) => { + button.addEventListener("click", (e) => { + const playground = button.closest("pre"); + const codeContainer = playground.querySelector(".code-container"); + const codeContent = playground.querySelector(".code-content"); + const codeLines = playground.querySelectorAll(".code-line"); + + codeContainer.classList.toggle("wrap-enabled"); + + if (codeContent.style.whiteSpace == "pre-wrap") { + codeContent.style.whiteSpace = "pre"; + codeLines.forEach(line => { + line.style.whiteSpace = "pre"; + }); + } else { + codeContent.style.whiteSpace = "pre-wrap"; + codeLines.forEach(line => { + line.style.whiteSpace = "pre-wrap"; + line.style.wordWrap = "break-word"; + line.style.wordBreak = "break-word"; + }); + } + }); + }); })(); (function syntax() { @@ -381,3 +394,4 @@ if (window.playground_copyable) { })(); + From 888b7406c8c5e810ae6a76048324dc4526af87ef Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 20:01:09 +0300 Subject: [PATCH 153/275] Update chrome.css --- src/theme/css/chrome.css | 79 ++++++++++++++++++++++++++++++---------- 1 file changed, 59 insertions(+), 20 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 3fd3babfa97..e7c277e8fc3 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -883,43 +883,81 @@ pre { code.hljs:not(.discord-message code) { background: var(--card-bg); margin-bottom: -0.5rem; + padding: 0; } .code-container { - margin-top: -47px; - margin-bottom: -42px; - margin-left: -6px; display: flex; + font-family: 'Consolas', 'Monaco', 'Courier New', monospace; + font-size: 14px; + line-height: 1.5; + background: #1e1e1e; + border-radius: 4px; + overflow: hidden; + margin-top: -45px; + margin-bottom: -34px; } .line-numbers { - background: hsl(0deg 0% 100% / 3%); - color: var(--text-muted); - padding: 1em 0.5em; - text-align: right; - user-select: none; + background: #2d2d2d; + color: #858585; + padding: 1em 0.5em; + text-align: right; + user-select: none; -webkit-user-select: none; - min-width: 4rem; - border-right: 1px solid var(--text-muted); + min-width: 3em; + border-right: 1px solid #404040; + display: flex; + flex-direction: column; } .line-number { - padding: 0 0.5em; - min-height: 1.4em; + padding: 0 0.5em; + min-height: 1.5em; + white-space: nowrap; + flex-shrink: 0; } - .code-content { - flex: 1; - padding: 15px; - overflow-x: auto; - tab-size: 4; - line-height: 1.4; + flex: 1; + padding: 1em; + overflow-x: auto; + white-space: pre; + tab-size: 4; + line-height: 1.5; +} + +.code-content pre-wrap { + white-space: pre-wrap; + word-wrap: break-word; + word-break: break-word; } .code-line { - margin-left: -5px !important; - line-height: 1.4; + white-space: pre; + line-height: 1.5; + min-height: 1.5em; + display: block; +} + +.code-line pre-wrap { + white-space: pre-wrap; + word-wrap: break-word; + word-break: break-word; +} + +.code-line-inline { + display: inline; +} + +.code-container.wrap-enabled .code-content { + white-space: pre-wrap; +} + +.code-container.wrap-enabled .code-line { + white-space: pre-wrap; + word-wrap: break-word; + word-break: break-word; } .nostyle { @@ -1678,3 +1716,4 @@ ul#searchresults span.teaser em { + From f9933d2e2867d604a84d6ef9a823dd4ba619b872 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 20:06:29 +0300 Subject: [PATCH 154/275] Update chrome.css --- src/theme/css/chrome.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index e7c277e8fc3..253888c0940 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -888,8 +888,7 @@ code.hljs:not(.discord-message code) { .code-container { display: flex; - font-family: 'Consolas', 'Monaco', 'Courier New', monospace; - font-size: 14px; + font-size: 13px; line-height: 1.5; background: #1e1e1e; border-radius: 4px; @@ -1716,4 +1715,5 @@ ul#searchresults span.teaser em { + From ae9211621773bfe519a342579b4ff5e16f433380 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 20:10:38 +0300 Subject: [PATCH 155/275] Update chrome.css --- src/theme/css/chrome.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 253888c0940..de9a4b7db05 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -895,6 +895,7 @@ code.hljs:not(.discord-message code) { overflow: hidden; margin-top: -45px; margin-bottom: -34px; + padding-bottom: 2px; } .line-numbers { @@ -905,6 +906,7 @@ code.hljs:not(.discord-message code) { user-select: none; -webkit-user-select: none; min-width: 3em; + margin-bottom: -10px; border-right: 1px solid #404040; display: flex; flex-direction: column; @@ -1715,5 +1717,6 @@ ul#searchresults span.teaser em { + From d8f24e1ff927c533930d7d31761b6c472233f789 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 20:17:46 +0300 Subject: [PATCH 156/275] Update chrome.css --- src/theme/css/chrome.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index de9a4b7db05..c1f6e6e3773 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -926,6 +926,15 @@ code.hljs:not(.discord-message code) { white-space: pre; tab-size: 4; line-height: 1.5; + scrollbar-color: #2d2d2d transparent; +} + +.code-content::-webkit-scrollbar { + background:transparent; +} + +.code-content::-webkit-scrollbar-thumb { + background: #2d2d2d; } .code-content pre-wrap { @@ -1718,5 +1727,6 @@ ul#searchresults span.teaser em { + From fa41355aa98d7b516d4f3e4a187a2e692ea68dde Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 20:19:30 +0300 Subject: [PATCH 157/275] Update chrome.css --- src/theme/css/chrome.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index c1f6e6e3773..779d2b5ed06 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -3,7 +3,7 @@ @import "variables.css"; ::-webkit-scrollbar { - background: var(--card-bg); + background: var(--dark-bg); } ::-webkit-scrollbar-thumb { @@ -11,7 +11,7 @@ } html { - scrollbar-color: var(--card-hover) var(--card-bg); + scrollbar-color: var(--card-hover) var(--dark-bg); } /* ===== Page Layout ===== */ @@ -1728,5 +1728,6 @@ ul#searchresults span.teaser em { + From 0c573378dda4a02569198cc0b7b9b9123333c7d0 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 20:25:49 +0300 Subject: [PATCH 158/275] Update chrome.css --- src/theme/css/chrome.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 779d2b5ed06..85b367142b0 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -893,8 +893,8 @@ code.hljs:not(.discord-message code) { background: #1e1e1e; border-radius: 4px; overflow: hidden; - margin-top: -45px; - margin-bottom: -34px; + margin-top: -35px; + margin-bottom: -35px; padding-bottom: 2px; } @@ -1729,5 +1729,6 @@ ul#searchresults span.teaser em { + From 1400225d467036bc359d23bf500d48f7e7249463 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 20:33:40 +0300 Subject: [PATCH 159/275] Update chrome.css --- src/theme/css/chrome.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 85b367142b0..23e457cffe2 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -888,7 +888,7 @@ code.hljs:not(.discord-message code) { .code-container { display: flex; - font-size: 13px; + font-size: 14px; line-height: 1.5; background: #1e1e1e; border-radius: 4px; @@ -1730,5 +1730,6 @@ ul#searchresults span.teaser em { + From 585d9a948cdd380d01d85415400dceb53718c459 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 20:35:03 +0300 Subject: [PATCH 160/275] Update book.js --- src/theme/book.js | 69 ++++++++++++++++++++++++++++------------------- 1 file changed, 41 insertions(+), 28 deletions(-) diff --git a/src/theme/book.js b/src/theme/book.js index 785ae3b170f..3aa70468849 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -220,40 +220,52 @@ if (window.playground_copyable) { })(); (function clipboard() { - const clipButtons = document.querySelectorAll(".clip-button"); + const clipButtons = document.querySelectorAll(".clip-button"); - function hideTooltip(elem) { - elem.firstChild.innerText = ""; - elem.className = "fa far fa-clipboard clip-button"; - } + function hideTooltip(elem) { + elem.firstChild.innerText = ""; + elem.className = "fa far fa-clipboard clip-button"; + } - function showTooltip(elem, msg) { - elem.firstChild.innerText = msg; - elem.className = "fa far fa-clipboard tooltipped"; - } + function showTooltip(elem, msg) { + elem.firstChild.innerText = msg; + elem.className = "fa far fa-clipboard tooltipped"; + } - const clipboardSnippets = new ClipboardJS(".clip-button", { - text: (trigger) => { - hideTooltip(trigger); - const playground = trigger.closest("pre"); - return playground.querySelector("code").textContent; - }, - }); + const clipboardSnippets = new ClipboardJS(".clip-button", { + text: (trigger) => { + hideTooltip(trigger); + const playground = trigger.closest("pre"); - clipButtons.forEach((clipButton) => { - clipButton.addEventListener("mouseout", (e) => { - hideTooltip(e.currentTarget); - }); - }); + const codeElement = playground.querySelector("code"); + const codeLines = codeElement.querySelectorAll(".code-line"); + + if (codeLines.length > 0) { + const lines = []; + codeLines.forEach(line => { + lines.push(line.textContent); + }); + return lines.join('\n'); + } else { + return codeElement.textContent; + } + }, + }); - clipboardSnippets.on("success", (e) => { - e.clearSelection(); - showTooltip(e.trigger, "Copied!"); - }); + clipButtons.forEach((clipButton) => { + clipButton.addEventListener("mouseout", (e) => { + hideTooltip(e.currentTarget); + }); + }); - clipboardSnippets.on("error", (e) => { - showTooltip(e.trigger, "Clipboard error!"); - }); + clipboardSnippets.on("success", (e) => { + e.clearSelection(); + showTooltip(e.trigger, "Copied!"); + }); + + clipboardSnippets.on("error", (e) => { + showTooltip(e.trigger, "Clipboard error!"); + }); })(); (function wrap() { @@ -395,3 +407,4 @@ if (window.playground_copyable) { + From 02031bfc67af3a807e278c6b245a92e9dd9008e7 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 20:37:54 +0300 Subject: [PATCH 161/275] Update chrome.css --- src/theme/css/chrome.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 23e457cffe2..4e598a6c87f 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -884,6 +884,7 @@ code.hljs:not(.discord-message code) { background: var(--card-bg); margin-bottom: -0.5rem; padding: 0; + overflow-y: hidden; } .code-container { @@ -1731,5 +1732,6 @@ ul#searchresults span.teaser em { + From 45c5930017d2b8bf4e1b888987c561d05998c421 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 20:41:32 +0300 Subject: [PATCH 162/275] Update chrome.css --- src/theme/css/chrome.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 4e598a6c87f..7091a95a932 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -881,7 +881,6 @@ pre { } code.hljs:not(.discord-message code) { - background: var(--card-bg); margin-bottom: -0.5rem; padding: 0; overflow-y: hidden; @@ -1733,5 +1732,6 @@ ul#searchresults span.teaser em { + From 12a317b0dbefe96d50a7114903061bc2f49d57f6 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 20:53:57 +0300 Subject: [PATCH 163/275] Update book.js --- src/theme/book.js | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/src/theme/book.js b/src/theme/book.js index 3aa70468849..8647e3a9637 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -274,24 +274,17 @@ if (window.playground_copyable) { button.addEventListener("click", (e) => { const playground = button.closest("pre"); const codeContainer = playground.querySelector(".code-container"); - const codeContent = playground.querySelector(".code-content"); - const codeLines = playground.querySelectorAll(".code-line"); - + const lineNumbers = codeContainer.querySelectorAll(".line-number"); + const codeLines = codeContainer.querySelectorAll(".code-line"); + codeContainer.classList.toggle("wrap-enabled"); - - if (codeContent.style.whiteSpace == "pre-wrap") { - codeContent.style.whiteSpace = "pre"; - codeLines.forEach(line => { - line.style.whiteSpace = "pre"; - }); - } else { - codeContent.style.whiteSpace = "pre-wrap"; - codeLines.forEach(line => { - line.style.whiteSpace = "pre-wrap"; - line.style.wordWrap = "break-word"; - line.style.wordBreak = "break-word"; - }); - } + + codeLines.forEach((line, index) => { + if (lineNumbers[index]) { + const lineHeight = line.scrollHeight; + lineNumbers[index].style.height = lineHeight + 'px'; + } + }); }); }); })(); @@ -408,3 +401,4 @@ if (window.playground_copyable) { + From 5eb5cd2dd2741ec893e65cbff864d73ecb5a52c4 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 21:01:22 +0300 Subject: [PATCH 164/275] Update chrome.css --- src/theme/css/chrome.css | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 7091a95a932..21f6418b698 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -908,15 +908,16 @@ code.hljs:not(.discord-message code) { min-width: 3em; margin-bottom: -10px; border-right: 1px solid #404040; - display: flex; - flex-direction: column; } .line-number { padding: 0 0.5em; min-height: 1.5em; white-space: nowrap; - flex-shrink: 0; + display: block; + height: 1.5em; + line-height: 1.5em; + text-align: right; } .code-content { @@ -930,19 +931,13 @@ code.hljs:not(.discord-message code) { } .code-content::-webkit-scrollbar { - background:transparent; + background: transparent; } .code-content::-webkit-scrollbar-thumb { background: #2d2d2d; } -.code-content pre-wrap { - white-space: pre-wrap; - word-wrap: break-word; - word-break: break-word; -} - .code-line { white-space: pre; line-height: 1.5; @@ -950,24 +945,25 @@ code.hljs:not(.discord-message code) { display: block; } -.code-line pre-wrap { +.code-container.wrap-enabled .code-content { white-space: pre-wrap; word-wrap: break-word; word-break: break-word; } -.code-line-inline { - display: inline; -} - -.code-container.wrap-enabled .code-content { - white-space: pre-wrap; -} - .code-container.wrap-enabled .code-line { white-space: pre-wrap; word-wrap: break-word; word-break: break-word; + min-height: auto; + height: auto; +} + +.code-container.wrap-enabled .line-number { + min-height: auto; + height: auto; + line-height: 1.5em; + vertical-align: top; } .nostyle { @@ -1733,5 +1729,6 @@ ul#searchresults span.teaser em { + From f20ff8b2f3f6aba2b9610e5dec88208ca38177a7 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 21:08:16 +0300 Subject: [PATCH 165/275] Update chrome.css --- src/theme/css/chrome.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 21f6418b698..ef891c83b69 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -48,6 +48,7 @@ html { background-color: var(--card-bg); border-radius: var(--border-radius); padding: 1rem; + padding-left: 1.5rem; margin-top: 2rem; } @@ -1730,5 +1731,6 @@ ul#searchresults span.teaser em { + From a1b0e653f19e7ab659b63f1f790fd3042c474888 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 21:09:43 +0300 Subject: [PATCH 166/275] Update chrome.css --- src/theme/css/chrome.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index ef891c83b69..3ff830eba3e 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -1038,7 +1038,7 @@ pre > .buttons { position: absolute; z-index: 100; right: -3px; - margin: 1px; + margin: 5px; padding: 1px; visibility: hidden; opacity: 0; @@ -1732,5 +1732,6 @@ ul#searchresults span.teaser em { + From 7d940be16b7a8b96aa4ebe4960271c0d6c4f1877 Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 21:18:16 +0300 Subject: [PATCH 167/275] Update home.css --- src/theme/css/home.css | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/theme/css/home.css b/src/theme/css/home.css index 318d8a36e30..31d5da4f529 100644 --- a/src/theme/css/home.css +++ b/src/theme/css/home.css @@ -9,7 +9,7 @@ } .editPage, -.breadcrumb, +.breadcrumb, .last_file_edit { visibility: hidden; } @@ -38,6 +38,14 @@ box-shadow: 0 12px 15px rgba(0, 0, 0, 0.3); } +.bdfd-is h1 { + margin-top: 2%; + white-space: normal; + overflow: visible !important; + text-overflow: clip !important; + width: auto; +} + #bdfd-about { padding: 1rem; } @@ -208,3 +216,4 @@ button a { } } + From 97d964a055fe3a997544519de244876a0ba2ac9f Mon Sep 17 00:00:00 2001 From: RainbowKey <113303649+Rainb0wKey@users.noreply.github.com> Date: Tue, 27 Jan 2026 21:18:39 +0300 Subject: [PATCH 168/275] Update index.hbs --- src/theme/index.hbs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/theme/index.hbs b/src/theme/index.hbs index 315c9c7b5ec..c1f7725c82d 100644 --- a/src/theme/index.hbs +++ b/src/theme/index.hbs @@ -182,18 +182,6 @@ }); -
- - - - - - - - - -
-