diff options
author | Cynthia Foxwell <gamers@riseup.net> | 2022-10-10 20:50:42 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-11 04:50:42 +0200 |
commit | 39a7b2f5a95c7330730bc5c883e5eca7e39b377e (patch) | |
tree | 18dad0ce2a1e2f46f8e238fb5c5faf6388de200a /src | |
parent | 7a0560b9d40d3ff50db8be408c65ca2b318bb402 (diff) | |
download | Vencord-39a7b2f5a95c7330730bc5c883e5eca7e39b377e.tar.gz Vencord-39a7b2f5a95c7330730bc5c883e5eca7e39b377e.tar.bz2 Vencord-39a7b2f5a95c7330730bc5c883e5eca7e39b377e.zip |
feat(plugin): No RPC (#84)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/noRPC.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/plugins/noRPC.ts b/src/plugins/noRPC.ts new file mode 100644 index 0000000..95dcf04 --- /dev/null +++ b/src/plugins/noRPC.ts @@ -0,0 +1,17 @@ +import definePlugin from "../utils/types"; +import { Devs } from "../utils/constants"; + +export default definePlugin({ + name: "No RPC", + description: "Disables Discord's RPC server.", + authors: [Devs.Cyn], + patches: [ + { + find: '.ensureModule("discord_rpc")', + replacement: { + match: /\.ensureModule\("discord_rpc"\)\.then\(\(.+?\)\)}/, + replace: '.ensureModule("discord_rpc")}', + }, + }, + ], +}); |