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

Bug with handling canary subdomain #64

Open
ndzn opened this issue Jan 21, 2023 · 1 comment
Open

Bug with handling canary subdomain #64

ndzn opened this issue Jan 21, 2023 · 1 comment

Comments

@ndzn
Copy link

ndzn commented Jan 21, 2023

I noticed when using a webhook using the canary.discord.com domain it seems to parse incorrectly
here's a snippet of what it requests
rawError":{"type":"Object","message":"404: Not Found","stack":"","code":0},"code":0,"status":404,"method":"POST","url":"[https://discord.com/api/v10https://canary.discord.com/api/webhooks/(channel)/(token)","requestBody"](https://discord.com/api/v10https://canary.discord.com/api/webhooks/(channel)/(token)%22,%22requestBody%22);:
this however can be easily fixed by just removing the canary subdomain, but just wanted to point this out if this means anything

@DevNergis
Copy link

src/DFs/index.js line 50 Change

return webhookURL.replace(/https:\/\/\w*\.?discord\.com\/api/gm, '')

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