How to Test Discord Webhooks with HookCap
How to Test Discord Webhooks with HookCap Discord has two distinct webhook concepts that are easy to confuse. Understanding which one you are dealing with determines how you test it. Incoming webho...

Source: DEV Community
How to Test Discord Webhooks with HookCap Discord has two distinct webhook concepts that are easy to confuse. Understanding which one you are dealing with determines how you test it. Incoming webhooks β You POST to a Discord-provided URL to send messages to a channel. Discord is the receiver. You do not need to expose a server. Bot event webhooks / Interactions endpoints β Discord POSTs to a URL you provide when events happen (slash commands, button clicks, message events). Your server is the receiver. This guide focuses on the second type: webhooks where Discord sends events to your server. That is the kind that requires a public HTTPS URL and that HookCap helps you test. Discord Interactions Endpoint If you are building a Discord app with slash commands, buttons, select menus, or modals, Discord will POST to an Interactions Endpoint URL you register in the Discord Developer Portal. You need to handle these requests on your server. Discord also uses Gateway (WebSocket) for most bot ev