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

GET on webhook not returning token in response #69

Open
jamiechapman opened this issue Jun 2, 2021 · 1 comment
Open

GET on webhook not returning token in response #69

jamiechapman opened this issue Jun 2, 2021 · 1 comment

Comments

@jamiechapman
Copy link

It appears that token is no longer returning by Discord (see discord/discord-api-docs#3056) when using Discord webhooks generated by a bot. This causes the following issue:

UnhandledPromiseRejectionWarning: Error: 401 Unauthorized
    at [redacted]/node_modules/snekfetch/src/index.js:195:23
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

Does anyone have any recommended solutions for obtaining a token using this library?

@jb3
Copy link
Owner

jb3 commented Jun 2, 2021

I'm not sure I follow. If you specify a full webhook URL in the constructor it should contain the webhook token, so the response should include it as well right?

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