-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add support for PTB/Canary Webhook URLs #12
base: master
Are you sure you want to change the base?
Conversation
Haven't used this type of documentation before so lmk if this isn't conventional
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/alii/linear-discord-serverless/62EvRSGMVYeAF6P5VrPJYoGVzLce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A point to consider!
yes |
Thanks for the PR! Glad you like LDS :) Would it at all be possible if we could implement a regex as mentioned in a review comment. ❤️ |
Added regex testing under |
if (url.includes('ptb.')) url = url.replace('ptb.', ''); | ||
if (url.includes('canary.')) url = url.replace('canary.', ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need this!
if (url.includes('ptb.')) url = url.replace('ptb.', ''); | |
if (url.includes('canary.')) url = url.replace('canary.', ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead use a regex capture group, and strip the inital section of the URL!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was my plan - see #12 (comment)
Added support for Discord's Canary/PTB Webhook URLs and touched up some function documentation to fit the changes. Love LDS btw ❤️