To learn how webhooks work on Discord, you can view their guide.

Example