# DiscordChatLoader

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/document_loaders/discord/DiscordChatLoader)

Load `Discord` chat logs.

## Signature

```python
DiscordChatLoader(
    self,
    chat_log: pd.DataFrame,
    user_id_col: str = 'ID',
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `chat_log` | `pd.DataFrame` | Yes | Pandas DataFrame containing chat logs. |
| `user_id_col` | `str` | No | Name of the column containing the user ID. Defaults to "ID". (default: `'ID'`) |

## Extends

- `BaseLoader`

## Constructors

```python
__init__(
    self,
    chat_log: pd.DataFrame,
    user_id_col: str = 'ID',
)
```

| Name | Type |
|------|------|
| `chat_log` | `pd.DataFrame` |
| `user_id_col` | `str` |


## Properties

- `chat_log`
- `user_id_col`

## Methods

- [`load()`](https://reference.langchain.com/python/langchain-community/document_loaders/discord/DiscordChatLoader/load)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/document_loaders/discord.py#L13)