# Installing the Package

With your project created, you need to add the package to your project. In Xcode navigate to **File > Add Packages**. Paste the Discord.swift URL (<https://github.com/Defxult/Discord.swift>) into the search box.&#x20;

<figure><img src="https://1224259333-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDhOdpU5WcynHJiIjTeb9%2Fuploads%2FfZqX5KA7GLLPuEgUAKNx%2FScreenshot%202023-06-18%20at%201.47.27%20PM.png?alt=media&#x26;token=e1f85b47-3ec5-4518-b755-946028f1dce9" alt=""><figcaption></figcaption></figure>

It's up to you on whichever **Dependency Rule** you'd like to use. But I would suggest using *Exact Version* while the project is still in beta. To see all released versions of the library, click [here](https://github.com/Defxult/Discord.swift/releases). Finally, add the package.

If you're creating an executable project from [#step-2a](https://discord-swift.gitbook.io/discord.swift/creating-a-project#step-2a "mention"), instead of *Add Package* you'll see **Copy Dependency**. From there, you'll need to add the library as a dependency in your package manager.

```swift
dependencies: [
    .package(url: "https://github.com/Defxult/Discord.swift.git", .exact("<version here>"))
]
// ...
dependencies: [
    .product(name: "Discord", package: "Discord.swift")
]
```


---

# 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://discord-swift.gitbook.io/discord.swift/overview/installing-the-package.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.
