Details
-
Type:
Problem report
-
Status: Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 5.0.0, 5.0.1
-
Fix Version/s: 5.0.4rc1, 5.2.0alpha2, 5.2 (plan)
-
Component/s: Templates (T)
-
Labels:
-
Team:Team INT
-
Sprint:Sprint 65 (Jun 2020), Sprint 66 (Jul 2020), Sprint 67 (Aug 2020)
-
Story Points:0.25
Description
The discord mediatype is validating the wrong url.
URL of webhook: https://discord.com/api/webhooks/........
Mediatype only accepts: https://discordapp.com/api/webhooks
Go to Administration -> Media types and find your discord mediatype. Open it, and next open the "script" part (almost at the bottom of the page)
Find line 23, it should look like:
else if (!params.discord_endpoint.startsWith('https://discordapp.com/api/webhooks')) {
Change it into:
else if (!params.discord_endpoint.startsWith('https://discord.com/api/webhooks')) {
Remove the 'app' from the URL, and the problem is solved