It seems like your code does not account for webhooks created via the discord app
When I create a webhook, its URL does not match the rules defined in the API:
The webhook created via the discordApp:
https://discordapp.com/api/webhooks/1234/A1B2C3
I was able to modify the above URL to https://discord.com/api/webhooks/1234/A1B2C3 which your form has accepted, and I've been able to retrieve events from Sentry
Goal
Support all available discord webhook formats
Context
It seems like your code does not account for webhooks created via the discord app When I create a webhook, its URL does not match the rules defined in the API:
https://github.com/IanMitchell/sentrydiscord.dev/blob/471192d217878866b1fcbe358ef994546eac6b20/pages/api/create.js#L9-L12
The webhook created via the discordApp:
https://discordapp.com/api/webhooks/1234/A1B2C3
I was able to modify the above URL tohttps://discord.com/api/webhooks/1234/A1B2C3
which your form has accepted, and I've been able to retrieve events from SentryExtra info
Discord app information: