> For the complete documentation index, see [llms.txt](https://inside-scripts.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://inside-scripts.gitbook.io/documentation/free-scripts/bridge-and-library/functions/library/webhook/server.md).

# Server

## <mark style="color:green;">sendWebhook</mark>

### Usage

```lua
Lib.sendWebhook(url, data)
```

* url: `string`
* data: `object`
  * color(optional): `string(hex)`
  * timestamp(optional): `boolean`
  * content(optional): `string`
  * title(optional): `string`
  * url(optional): `string`
  * author(optional): `object`
    * name(optional): `string`
    * icon\_url(optional): `string`
    * url(optional): `string`
  * description(optional): `string`
  * thumbnail(optional): `object`
    * url: `string`
  * fields(optional): `array`
    * name: `string`
    * value: `string`
    * inline: `boolean`
  * image(optional): `object`
    * url: `string`
  * footer(optional): `object`
    * text(optional): `string`
    * icon\_url(optional): `string`

### Example

```lua
Lib.sendWebhook("discord_webhook_url", {
    color = "#00f0be",
    timestamp = true,
    title = "Test",
    content = "@everyone",
})
```
