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
1/*
2 * FiveCord — a Discord client mod
3 * Copyright (c) 2025 FiveCord
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7import { Devs } from "@utils/constants";
8import definePlugin from "@utils/types";
9
10export default definePlugin({
11 name: "DisableCallIdle",
12 description: "Disables automatically getting kicked from a DM voice call after 3 minutes and being moved to an AFK voice channel.",
13 tags: ["Voice", "Utility"],
14 authors: [Devs.Nuckyz],
15 patches: [
16 {
17 find: "this.idleTimeout.start(",
18 replacement: {
19 match: /this\.idleTimeout\.(start|stop)/g,
20 replace: "$self.noop"
21 }
22 },
23 {
24 find: "handleIdleUpdate(){",
25 replacement: {
26 match: "handleIdleUpdate(){",
27 replace: "handleIdleUpdate(){return;"
28 }
29 }
30 ],
31
32 noop() { }
33});
34