⬇️Installing the Package

Using Xcode to install 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.

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. Finally, add the package.

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

Last updated