Plugin
DisableCallIdle
Disables automatically getting kicked from a DM voice call after 3 minutes and being moved to an AFK voice channel.
1
/*2
* FiveCord — a Discord client mod3
* Copyright (c) 2025 FiveCord4
* SPDX-License-Identifier: GPL-3.0-or-later5
*/6
7
import { Devs } from "@utils/constants";8
import definePlugin from "@utils/types";9
10
export 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