IanMitchell / sentrydiscord.dev

Forward Sentry notifications to your Discord server
https://sentrydiscord.dev
MIT License
209 stars 22 forks source link

Discord Canary/PTB webhooks fail validation #4

Closed prryplatypus closed 3 years ago

prryplatypus commented 3 years ago

prryplatypus commented 3 years ago

5 allows Canary and PTB subdomains, but still doesn't allow webhooks with the API version in them.

At this point I think it'd probably be best to get the following regex out instead?

^https:\/\/(?:(?:canary|ptb)\.)?discord\.com\/api\/(?:v[8-9]\/)?webhooks\/\d+\/[A-z0-9]+$

RegExr Demo