1. Head to your discord server and open server settings.
2. Once you're at server settings look for the tab called "Intergrations".
3. From here we can click on the "Create Webhook" Button.
4 After this you can set a channel where you want the webhook to post messages to.
5. Now you have your webhook setup. just copy the URL and use it where you need to.