Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught (in promise) TypeError: Illegal invocation #59

Closed
ghost opened this issue Nov 28, 2023 · 3 comments
Closed

Uncaught (in promise) TypeError: Illegal invocation #59

ghost opened this issue Nov 28, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 28, 2023

Hello,

When I execute examples/bridge_mod.js in the DevTools Console while the arRPC server is active, I encounter the error 'Uncaught (in promise) TypeError: Illegal invocation' at line:

const candidate = mod[prop];

I believe that ArmCord utilizes this script (https://github.com/ArmCord/ArmCord/blob/dev/src/content/js/rpc.js), possibly explaining why arRPC is still not functioning, as mentioned in ArmCord/ArmCord#520.

@ghost
Copy link
Author

ghost commented Nov 28, 2023

@ariankordi has implemented fixes in their fork (https://github.com/ariankordi/arrpc) that address this issue.

@ariankordi
Copy link
Contributor

Also feel free to come up with your own fix, I'm new to these Discord JS mods...

@CanadaHonk
Copy link
Contributor

Fixed in 4fe13ef

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants