⬇️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.
If you're creating an executable project from Step 2a, 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.
dependencies: [
.package(url: "https://github.com/Defxult/Discord.swift.git", .exact("<version here>"))
]
// ...
dependencies: [
.product(name: "Discord", package: "Discord.swift")
]
Last updated