aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/noRPC.ts
blob: f1094fd99791e0d605c8043d0a5396362c182af0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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],
    target: "DESKTOP",
    patches: [
        {
            find: '.ensureModule("discord_rpc")',
            replacement: {
                match: /\.ensureModule\("discord_rpc"\)\.then\(\(.+?\)\)}/,
                replace: '.ensureModule("discord_rpc")}',
            },
        },
    ],
});