question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Support Discord Development release

See original GitHub issue

Is your feature request related to a problem? Please describe.

Bandaged BD does not support the Discord Development release:

Uncaught (in promise) TypeError: Cannot read property 'settings' of undefined
    at Object.getSettingGroup (remote.js:1)
    at Dt.initSettings (remote.js:1)
    at Dt.init (remote.js:1)
    at remote.js:1

Describe the feature you’d like

From a quick look at the codebase, it should be easy to support it. Here are some patches for master and development respectively:

diff --git i/src/modules/dataStore.js w/src/modules/dataStore.js
index f3f81de..b555354 100644
--- i/src/modules/dataStore.js
+++ w/src/modules/dataStore.js
@@ -25,8 +25,8 @@ export default new class DataStore {
             if (!fs.existsSync(this.settingsFile)) return;
             let settings = __non_webpack_require__(this.settingsFile);
             fs.unlinkSync(this.settingsFile);
-            if (settings.hasOwnProperty("settings")) settings = Object.assign({stable: {}, canary: {}, ptb: {}}, {[releaseChannel]: settings});
-            else settings = Object.assign({stable: {}, canary: {}, ptb: {}}, settings);
+            if (settings.hasOwnProperty("settings")) settings = Object.assign({stable: {}, canary: {}, ptb: {}, development: {}}, {[releaseChannel]: settings});
+            else settings = Object.assign({stable: {}, canary: {}, ptb: {}, development: {}}, settings);
             this.setBDData("settings", settings);
         }
         catch (err) {
diff --git i/src/modules/datastore.js w/src/modules/datastore.js
index 6516bb9..7bad07a 100644
--- i/src/modules/datastore.js
+++ w/src/modules/datastore.js
@@ -9,7 +9,7 @@ const releaseChannel = DiscordNative.globals ? DiscordNative.globals.releaseChan
 // =======================
 // %appdata%\BetterDiscord
 //     -> data
-//         -> [releaseChannel]\ (stable/canary/ptb)
+//         -> [releaseChannel]\ (stable/canary/ptb/development)
 //             -> settings.json
 //             -> plugins.json
 //             -> themes.json
@@ -45,7 +45,7 @@ export default new class DataStore {
         const oldData = __non_webpack_require__(oldFile); // got the data
         fs.renameSync(oldFile, `${oldFile}.bak`); // rename file after grabbing data to prevent loop
         const setChannelData = (channel, key, value, ext = "json") => fs.writeFileSync(path.resolve(this.baseFolder, channel, `${key}.${ext}`), JSON.stringify(value, null, 4));
-        const channels = ["stable", "canary", "ptb"];
+        const channels = ["stable", "canary", "ptb", "development"];
         let customcss = "";
         let favoriteEmotes = {};
         try {customcss = oldData.bdcustomcss ? atob(oldData.bdcustomcss) : "";}

Additional context

Here’s the download link for Linux.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
Kyzacommented, Jun 6, 2021

The only differences should be the Electron version or native module versions iirc. Otherwise it runs off of Canary’s endpoints.

So a release channel that is barely used and is essentially a carbon copy of another channel?

Yep. Discord themselves say it’s discontinued which is kinda strange since they still update it separately from Canary.

2reactions
Tropix126commented, Dec 20, 2020

Might add that it’s also available through windows and macOS. Just hidden behind an obscure api download link: https://discordapp.com/api/download/development?platform=win

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discord Developer Portal — Documentation — Change Log
Forum channels ( GUILD_FORUM or 15 ) have been released to all community servers. GUILD_FORUM channels are a new channel type that only...
Read more >
Discord Developer Portal — Documentation — Getting Started
Discord apps let you customize your servers with interactions and automation. This guide is meant to walk through building and running your first...
Read more >
Branches and Builds - Developer Portal - Discord
We're updating our Developer Terms of Service and Developer Policy, effective October 1, 2022! Please review. See Terms. Dismiss.
Read more >
Discord Developer Portal — Documentation — Applications
Talk to us in the Discord Developers Server! Selling SKUs on Discord has now been discontinued as of March 1, 2022. Read here...
Read more >
Discord Developer Portal — Documentation — Store
Need help with the SDK? · Selling SKUs on Discord has now been discontinued as of March 1, 2022. · You still need...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found