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

How reject works? #110

Open
BenTimor opened this issue Dec 30, 2022 · 0 comments
Open

How reject works? #110

BenTimor opened this issue Dec 30, 2022 · 0 comments

Comments

@BenTimor
Copy link

BenTimor commented Dec 30, 2022

Lets say I listen to some push event and for some reason I decide to reject this push. I tried to do something like:

repos.on("push", (data: PushData) => {
    data.reject(403, `Rejected! Have a good day`)
});

It really returns some error to the client, But it doesn't return the specific message I chose (It does send the correct code)

What am I doing wrong?

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

1 participant