main | develop |
---|---|
A Swift library for Discord API.
Discord
, alias library that contains DiscordREST
, DiscordGateway
.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")
]
)
]
)
link |
Stars: 7 |
Last commit: 1 year ago |
DiscordGateway
moduleDiscordV10
module to DiscordREST
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics