Improve DisableDMCallIdle

This commit is contained in:
Nuckyz 2024-02-07 20:39:02 -03:00 committed by Luna
parent 4cd363da74
commit 2ef10e697e

View file

@ -27,8 +27,8 @@ export default definePlugin({
{ {
find: ".Messages.BOT_CALL_IDLE_DISCONNECT", find: ".Messages.BOT_CALL_IDLE_DISCONNECT",
replacement: { replacement: {
match: /(?<=function \i\(\){)(?=.{1,120}\.Messages\.BOT_CALL_IDLE_DISCONNECT)/, match: /,?(?=this\.idleTimeout=new \i\.Timeout)/,
replace: "return;" replace: ";return;"
} }
} }
] ]