From 39a7b2f5a95c7330730bc5c883e5eca7e39b377e Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Mon, 10 Oct 2022 20:50:42 -0600 Subject: [PATCH] feat(plugin): No RPC (#84) --- src/plugins/noRPC.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/plugins/noRPC.ts 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")}', + }, + }, + ], +});