|
|
|
@ -16,12 +16,14 @@
|
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import { migratePluginSettings } from "@api/Settings";
|
|
|
|
|
import { Devs } from "@utils/constants";
|
|
|
|
|
import definePlugin from "@utils/types";
|
|
|
|
|
|
|
|
|
|
migratePluginSettings("DisableCallIdle", "DisableDMCallIdle");
|
|
|
|
|
export default definePlugin({
|
|
|
|
|
name: "DisableDMCallIdle",
|
|
|
|
|
description: "Disables automatically getting kicked from a DM voice call after 3 minutes.",
|
|
|
|
|
name: "DisableCallIdle",
|
|
|
|
|
description: "Disables automatically getting kicked from a DM voice call after 3 minutes and being moved to an AFK voice channel.",
|
|
|
|
|
authors: [Devs.Nuckyz],
|
|
|
|
|
patches: [
|
|
|
|
|
{
|
|
|
|
@ -30,6 +32,13 @@ export default definePlugin({
|
|
|
|
|
match: /,?(?=this\.idleTimeout=new \i\.Timeout)/,
|
|
|
|
|
replace: ";return;"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
find: "handleIdleUpdate(){",
|
|
|
|
|
replacement: {
|
|
|
|
|
match: /(?<=_initialize\(\){)/,
|
|
|
|
|
replace: "return;"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
});
|