Embed Editor
#5865F2
{ “content”: null, “embeds”: [] }
How to Create and Use Discord Webhooks: A Step-by-Step Guide
Discord Webhooks are a powerful way to send automated, stylized messages to a text channel without needing a full-scale bot. Whether you want to post server announcements, social media updates, or GitHub commits, webhooks make it easy.
However, webhooks require a specific code format called JSON to work correctly. The tool above generates this code for you. Below is how you can set up the webhook on your server and use the generated code.
Step 1: Create a Webhook in Discord
You need “Manage Webhooks” permission on your server to do this.
- Open Server Settings: Right-click your server icon on the left sidebar, select Server Settings, and then click Integrations.
- Create the Webhook: Click on the Webhooks tab and select the “New Webhook” button.
- Customize:
- Name: Give your webhook a name (e.g., “Announcements Bot”). This name will appear as the “sender” of the messages.
- Channel: Choose the text channel where you want the messages to appear.
- Avatar: Upload an image if you want your bot to have a specific profile picture.
- Get the URL: Click “Copy Webhook URL”. You will need this link to send data to your channel.
Step 2: Generate Your Embed Code
Scroll up to the Discord Embed Generator tool on this page.
- Enter your Title, Description, and choose a Color (e.g., Red for alerts, Blue for info).
- Add an image URL if you want a banner.
- Once the preview looks perfect, click “Copy JSON Code”.
Step 3: Send the Message
Now that you have the Webhook URL (from Step 1) and the JSON Payload (from Step 2), you need to send it.
- For Developers: If you are coding in Python, JavaScript, or PHP, send a
POSTrequest to your Webhook URL with the headerContent-Type: application/jsonand paste the copied JSON as the body data. - For Non-Coders: You can use free API testing tools like Postman or Insomnia. Simply paste your Webhook URL into the address bar (set to POST), select “Body” > “Raw” > “JSON”, paste your code, and hit Send.
Your beautiful embed message will instantly appear in your Discord channel!
