aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/noRPC.ts
blob: 95dcf04ecf346019362d00faff12cf732d8620d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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")}',
            },
        },
    ],
});