[Feature] Support Discord Development release
See original GitHub issueIs 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:
- Created 3 years ago
- Comments:18 (11 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yep. Discord themselves say it’s discontinued which is kinda strange since they still update it separately from Canary.
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