A Swift library for Discord API.
Discord, alias library that contains
DiscordREST, library that can communicate with Discord's REST API. (Requires Foundation framework)
DiscordGateway, library that can communicate with Discord's Gateway API. (Requires SwiftNIO, Foundation framework)
swift-discord aims to support all of the platforms where Swift is supported. Currently, it is developed and tested on macOS and Linux, and is known to support the following operating system versions:
To use this package in a SwiftPM project, you need to set it up as a package dependency:
// swift-tools-version:5.5 import PackageDescription let package = Package( name: "MyPackage", dependencies: [ .package( url: "https://github.com/swift-discord/swift-discord.git", .upToNextMajor(from: "0.0.3") // or `.upToNextMinor ) ], targets: [ .target( name: "MyTarget", dependencies: [ .product(name: "Discord", package: "swift-discord") ] ) ] )
|Last commit: 1 week ago|