TradingView did a great documentation for us already
https://www.tradingview.com/support/solutions/43000529348-about-webhooks/
With Discord, you'll have to make sure your alerts are sent in the Discord webhook format
https://birdie0.github.io/discord-webhooks-guide/discord_webhook.html