> ## Documentation Index
> Fetch the complete documentation index at: https://docs.camel-ai.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Camel.bots.discord.discord installation

<a id="camel.bots.discord.discord_installation" />

<a id="camel.bots.discord.discord_installation.DiscordInstallation" />

## DiscordInstallation

```python theme={"system"}
class DiscordInstallation:
```

Represents an installation of a Discord application in a
specific guild (server).

**Parameters:**

* **guild\_id** (str): The unique identifier for the Discord guild (server) where the application is installed.
* **access\_token** (str): The access token used to authenticate API requests for the installed application.
* **refresh\_token** (str): The token used to refresh the access token when it expires.
* **installed\_at** (datetime): The timestamp indicating when the application was installed in the guild.
* **token\_expires\_at** (Optional\[datetime]): The optional timestamp indicating when the access token will expire. Defaults to None if the token does not have an expiration time.

<a id="camel.bots.discord.discord_installation.DiscordInstallation.__init__" />

### **init**

```python theme={"system"}
def __init__(
    self,
    guild_id: str,
    access_token: str,
    refresh_token: str,
    installed_at: datetime,
    token_expires_at: Optional[datetime] = None
):
```

Initialize the DiscordInstallation.

**Parameters:**

* **guild\_id** (str): The unique identifier for the Discord guild (server) where the application is installed.
* **access\_token** (str): The access token used to authenticate API requests for the installed application.
* **refresh\_token** (str): The token used to refresh the access token when it expires.
* **installed\_at** (datetime): The timestamp indicating when the application was installed in the guild.
* **token\_expires\_at** (Optional\[datetime]): The optional timestamp indicating when the access token will expire. Defaults to None if the token does not have an expiration time. (default: :obj:`None`)
