> For the complete documentation index, see [llms.txt](https://invomagic.gitbook.io/ticketsdocs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://invomagic.gitbook.io/ticketsdocs/tools/webhooks.md).

# Custom Webhook Messages

Make custom webhook messages using embeds or just plain messages (or both!)\
This is especially useful if you want to make nicely formatted rules or other nicely formatted information (or if you want to make it look like you're a bot 0\_o)

{% hint style="danger" %}
Embed JSON is currently down, we apologize for the inconvience <3
{% endhint %}

## Send a message via a webhook

To send a message with a webhook you'll need to use the `/webhook send` command, and you'll need to pick a "Message"  which allows you to choose between 3 different message types

### Message Types

**Plain:** This is a typical, regular discord message like the ones you send

**Embed:** A Rich embed, like the ones you see bots send.\
\
**Embed JSON:** Super customizable version of Embed it allows you to use JSON to customize every aspect possible!

When you send the command you'll recieve a form with inputs to make your message to send, among these is the Webhook URL  which is needed to send the message.

### How to get the webhook URL

First open up the channel's settings

<figure><img src="/files/2EdvcDP1kYuPVPDMxY9m" alt="" width="375"><figcaption><p>Channel settings</p></figcaption></figure>

Then go to integrations

<figure><img src="/files/oQbakGuk3aS0TGZbQpv7" alt="" width="375"><figcaption><p>Channel integrations</p></figcaption></figure>

Click "Create Webhook"

<figure><img src="/files/tzulWIFI49x0AIFyb9Op" alt="" width="375"><figcaption><p>Created Webhook</p></figcaption></figure>

Go ahead and customize its pfp and name to whatever you want\
Then after that's done click "Copy Webhook URL" it should look something like this:

```
https://discord.com/api/webhooks/1318291368627535882/nRa7MlmV20sWCPuEX17D5MTlG3B_gJ7YFgaq4MyfHik6Ey1fzsDFReHJmd8s1pqjSJJt
```

You can then use that Webhook URL to send messages with it.

### Embed JSON

This is a fully customizable version of the embed, unlike in sticky messages this version is free.\
You can create the JSON here <https://embeds.magicgamer.xyz/>

## Edit a message via Webhook

You can edit the messages you created with webhooks incase you need to update outdated information and what not.\
\
You'll need to use the `/webhook edit` command\
\
It essentially requires the same input only you also need to input a MessageID, this is needed to edit the message, you find the message ID at the end of a message link

<figure><img src="/files/QdewQ5noosQkyhg5sTn3" alt=""><figcaption><p>MessageID in a Message Link</p></figcaption></figure>

Other than needing a MessageID the edit a message inputs are essentially the same.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://invomagic.gitbook.io/ticketsdocs/tools/webhooks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
