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

ContextMenu.patch callback cannot accept props argument #3

Closed
Neodymium7 opened this issue Nov 8, 2022 · 1 comment
Closed

ContextMenu.patch callback cannot accept props argument #3

Neodymium7 opened this issue Nov 8, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Neodymium7
Copy link

Neodymium7 commented Nov 8, 2022

Patching a context menu like shown below results in an error, as the ContextMenuCallback type cannot have a props argument, even though I believe the props are passed to the patch callback.

BdApi.ContextMenu.patch("guild-context", (ret, props) => {
    console.log(props);
});

image

@Zerthox Zerthox added the bug Something isn't working label Nov 8, 2022
@Zerthox
Copy link
Owner

Zerthox commented Nov 8, 2022

Thanks for reporting. Looks like yet another part where the BD docs are incomplete. They don't mention the 2nd argument.

@Zerthox Zerthox closed this as completed in bf4403a Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants