# 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="https://2864633804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKZ3bWFAIdLAqpW2uafZ4%2Fuploads%2F4efOzAL94d2zEuV4GHyN%2FScreenshot%202025-04-24%20at%2012.16.38%E2%80%AFPM.png?alt=media&#x26;token=d45e8b73-1514-4c22-96c1-4883be9bf066" 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="https://2864633804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKZ3bWFAIdLAqpW2uafZ4%2Fuploads%2FtizRgRCDiT4Z9kxM9plb%2FScreenshot%202025-04-24%20at%2012.11.49%E2%80%AFPM.png?alt=media&#x26;token=e2cbe05f-c822-47cf-9112-30fb2a164097" 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.
