Cant modify this array because we only clone 1 level deep

This commit is contained in:
Nuckyz 2024-05-07 03:07:03 -03:00
parent 65b6440024
commit a1fefcf27a
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -517,10 +517,10 @@ async function runtime(token: string) {
if (args[0].$$vencordProps != null) {
if (["find", "findComponent", "waitFor"].includes(searchType)) {
filterName = args[0].$$vencordProps.shift();
filterName = args[0].$$vencordProps[0];
}
parsedArgs = args[0].$$vencordProps;
parsedArgs = args[0].$$vencordProps.slice(1);
}
// if parsedArgs is the same as args, it means vencordProps of the filter was not available (like in normal filter functions),