---
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: 410
product: Flux
version: v0
---

# discord package

-   Flux 0.69.0+
-   View InfluxDB support

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/)
