Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Added Discord Development version #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions src/renderer/components/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@
style=" margin-left: 4px;"
@click="addDiscordCanary"
>Add Discord Canary</button>
<button
class="coolbtn margin-vertical"
style=" margin-left: 4px;"
@click="addDiscordDev"
>Add Discord Development</button>
<!-- <button
class="coolbtn margin-vertical"
style=" margin-left: 4px;"
Expand Down Expand Up @@ -201,6 +206,33 @@ export default {
);
}
},
addDiscordDev() {
let userDir = Path.join(os.homedir())
.split("\\")
.join("/");
let directory = `${userDir}/AppData/Roaming/discorddevelopment/Cache`;
if (os.platform() === "darwin") {
directory = `${userDir}/Library/Application Support/discorddevelopment/Cache`;
}
if (os.platform() === 'linux') {
directory = `${userDir}/.config/discorddevelopment/Cache`
}
let dupe = this.watchDirectories.filter(item => item.dir === directory);
if (dupe.length > 0) return;
if (fs.existsSync(directory)) {
this.watchDirectories.push({
name: "discorddevelopment",
dir: directory
});
this.watchDirectories = this.watchDirectories;
} else {
this.$root.$emit(
"alert",
"error",
"Directory not found! You might not have this application installed."
);
}
},
addDiscordPTB() {
let userDir = Path.join(os.homedir())
.split("\\")
Expand Down