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