Improve DisableDMCallIdle
This commit is contained in:
parent
3325a8de40
commit
a108448255
1 changed files with 2 additions and 2 deletions
|
@ -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;"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue