feat(plugin): No RPC (#84)
This commit is contained in:
parent
7a0560b9d4
commit
39a7b2f5a9
17
src/plugins/noRPC.ts
Normal file
17
src/plugins/noRPC.ts
Normal file
|
@ -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")}',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
Loading…
Reference in a new issue