Plugin
DisableCallIdle
Disables automatically getting kicked from a DM voice call after 3 minutes and being moved to an AFK voice channel.
1
import { Devs } from "@utils/constants";2
import definePlugin from "@utils/types";3
4
export 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