2022-10-11 02:50:42 +00:00
|
|
|
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],
|
2022-10-16 15:15:15 +00:00
|
|
|
target: "DESKTOP",
|
2022-10-11 02:50:42 +00:00
|
|
|
patches: [
|
|
|
|
{
|
|
|
|
find: '.ensureModule("discord_rpc")',
|
|
|
|
replacement: {
|
|
|
|
match: /\.ensureModule\("discord_rpc"\)\.then\(\(.+?\)\)}/,
|
|
|
|
replace: '.ensureModule("discord_rpc")}',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
});
|