# Discord

> This page is about FlutterFlow (the app builder you use by describing your app), not FlutterFlow Studio.

URL: https://docs.flutterflow.io/ffx/discord

Connect a Discord channel's webhook, and then ask the agent for a feature that posts messages from your app to that channel.

Post messages from your app to a Discord channel, such as an alert when something happens in your app. You need a webhook for a text channel in your Discord server.

## Connect Discord {#connect-discord}

To connect Discord, first create a webhook in Discord: open **Server Settings › Integrations › Webhooks › New Webhook**, set the webhook to a text channel, and then click **Copy Webhook URL**.

Only a project owner can connect Discord. If you're a project owner, connect Discord to your app:

1. Open **Project Settings › Connections**.
2. Turn on the switch for **Discord**. The **Connect Discord** dialog opens.
3. Paste the URL into **Webhook URL**. To open Discord's help on webhooks, click **Find it** beside the label.
4. Click **Connect**.

Discord checks the webhook before FlutterFlow saves the [connection](https://docs.flutterflow.io/ffx/glossary#backend-and-data). For more information, see [Connect a service](https://docs.flutterflow.io/ffx/connect-a-service).

## What to ask

To ask for a Discord feature, tell the agent what to post and what triggers the post:

> Example request: "When a signed-in person adds a transaction over 500, post the payee and the amount to my Discord channel."

> Example request: "When someone sends the feedback form, post their message to my Discord channel under the name Ledger feedback."

## Where messages go {#where-messages-go}

Your app posts every Discord message to the channel that your webhook is set to. Your app can't choose another channel, and posting messages is the only thing it can do with Discord.

- **Another channel:** create a webhook in that channel, and then connect it in place of the current one.
- **Forum channels:** Discord refuses messages sent through a webhook on a forum channel. Use a webhook on a text channel.
- **Mentions:** a mention in a message, such as `@everyone`, shows in the channel but doesn't notify anyone.

## Agent questions

If Discord isn't connected, the agent asks you to connect it in a card above the message box, with a **Connect Discord** button. See [Connect when the agent asks](https://docs.flutterflow.io/ffx/connect-a-service#connect-when-the-agent-asks).

## Review

After the agent finishes, read the turn's [**Summary**](https://docs.flutterflow.io/ffx/what-changed#summary) and review its [**Changes**](https://docs.flutterflow.io/ffx/what-changed#changes-tab). Check the affected screens in **Screens**, and try the change in **Preview**. If the change uses records or sign-in, test it with [the thread's own data in **Data**](https://docs.flutterflow.io/ffx/thread-data).

After you push a backend change, check the result in **Backend**.

Calls from the preview are real, so testing the feature posts real messages to your channel. See [How connections work](https://docs.flutterflow.io/ffx/connections#preview-calls-are-real).

## Call limit {#call-limit}

Your app and the agent share a limit of 30 calls a minute to Discord through your app's connection. See [Limits](https://docs.flutterflow.io/ffx/limits#connections).

## Push

After you test the feature, [push the changes to your app](https://docs.flutterflow.io/ffx/push).

## Next steps

- To replace the webhook URL or disconnect Discord, see [Manage connections](https://docs.flutterflow.io/ffx/manage-connections).
- To see the other services that you can connect, see [Available services](https://docs.flutterflow.io/ffx/services).

## Troubleshooting

- **The dialog asks you to paste the whole webhook URL:** in Discord, click **Copy Webhook URL** again, and paste all of it.
- **Discord refuses the webhook URL:** see [A service refuses your key](https://docs.flutterflow.io/ffx/troubleshoot-connections#key-refused).
- **Discord stops accepting messages:** the webhook was deleted or its URL was reset. Create a new webhook in the channel, and connect Discord again with its URL.
- **Messages from a forum channel's webhook fail:** create the webhook on a text channel, and connect Discord with its URL.
- **Discord refuses the name that a message posts under:** Discord doesn't accept some names, such as any name that contains "discord". Ask the agent for a different name.
- **Your app shows a message about the service:** see [Messages shown in your app](https://docs.flutterflow.io/ffx/troubleshoot-connections#app-messages).
