---
title: discord package
description: The discord package provides functions for sending messages to Discord.
url: https://docs.influxdata.com/flux/v0/stdlib/contrib/chobbs/discord/
estimated_tokens: 178
product: Flux
version: v0
publisher: InfluxData
canonical: https://docs.influxdata.com/flux/v0/stdlib/contrib/chobbs/discord/
date: '2023-09-12T23:33:31-06:00'
lastmod: '2023-09-12T23:33:31-06:00'
---

* Flux 0.69.0+

InfluxDB support

> [!Important]
> The `discord` package is a user-contributed package
> maintained by the [package author](#package-author-and-maintainer).

The `discord` package provides functions for sending messages to [Discord](https://discord.com/).
Import the `contrib/chobbs/discord` package:

```js
import "contrib/chobbs/discord"
```

## Options

```js
option discord.discordURL = "https://discordapp.com/api/webhooks/"
```

### discordURL

`discordURL` is the Discord webhook URL.
Default is `https://discordapp.com/api/webhooks/`.

## Functions

* [discord.endpoint()](/flux/v0/stdlib/contrib/chobbs/discord/endpoint/)
* [discord.send()](/flux/v0/stdlib/contrib/chobbs/discord/send/)
