# Discord Messages

Alhena AI supports indexing messages from Discord channels to provide context or answer questions based on past interactions. Alhena AI has a section for ingesting data from other sources, where it asks you to connect your Discord server for data fetching. Once connected, it will prompt you to select the channels from which Alhena AI needs to pull data. Additionally, it will ask you to provide the Discord IDs of users whose answers you want to consider as official responses. By default, Alhena AI retrieves data from the last 90 days from the selected Discord channels. Discord data at Alhena AI is refreshed every 24 hours. Alhena AI requires read-only access to the channels from which it needs to read data. If access is not granted, a dialog box will pop up explaining how to grant Alhena AI the necessary access.

### Steps to enable Data fetch from discord messages

1. Go to Home > AI Settings, then click "Ingest from other sources" and choose Discord. It will prompt you to connect Discord.

<figure><img src="/files/fCl6siAeTZ661uT18UsN" alt=""><figcaption><p>Alhena AI interace to connect discord</p></figcaption></figure>

2. Once connected, it will show a screen asking which channel to read from for Discord messages.

<figure><img src="/files/r6ewBsN3d28JN1eRN7Bb" alt=""><figcaption><p>Alhena AI configuration showing how to configure channels for data fetch</p></figcaption></figure>

2. If the Alhena AI app inside Discord can't read from a given channel, you need to add permissions for the Alhena AI app to read from that channel.


---

# Agent Instructions: 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:

```
GET https://alhena.gitbook.io/docs/ai-configuration/data-sources/discord-messages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
