Plugin

DisableCallIdle

Disables automatically getting kicked from a DM voice call after 3 minutes and being moved to an AFK voice channel.

Voice Utility
index.ts
Download

Source

src/plugins/disableCallIdle/index.ts
1import { Devs } from "@utils/constants";
2import definePlugin from "@utils/types";
3
4export default definePlugin({
5 name: "DisableCallIdle",
6 description: "Disables automatically getting kicked from a DM voice call after 3 minutes and being moved to an AFK voice channel.",
7 tags: ["Voice", "Utility"],
8 authors: [Devs.Nuckyz],
9 patches: [
10 {
11 find: "this.idleTimeout.start(",
12 replacement: {
13 match: /this\.idleTimeout\.(start|stop)/g,
14 replace: "$self.noop"
15 }
16 },
17 {
18 find: "handleIdleUpdate(){",
19 replacement: {
20 match: "handleIdleUpdate(){",
21 replace: "handleIdleUpdate(){return;"
22 }
23 }
24 ],
25
26 noop() { }
27});
28