aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/noRPC.ts17
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")}',
+ },
+ },
+ ],
+});