Swiftpack.co - swift-discord/swift-discord as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by swift-discord.
swift-discord/swift-discord v0.0.3
A Swift library for Discord REST/Gateway API in all platforms.
⭐️ 2
🕓 2 weeks ago
iOS macOS watchOS tvOS linux macCatalyst windows android
.package(url: "https://github.com/swift-discord/swift-discord.git", from: "v0.0.3")


main develop
Test Test

A Swift library for Discord API.

Package Products

  • 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)

Available APIs

Supported Platforms

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:

  • Ubuntu 18.04+
  • macOS 10.15+, iOS 13+, tvOS 13+ or watchOS 6+

Using swift-discord in your project

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: [
      url: "https://github.com/swift-discord/swift-discord.git", 
      .upToNextMajor(from: "0.0.3") // or `.upToNextMinor
  targets: [
      name: "MyTarget",
      dependencies: [
        .product(name: "Discord", package: "swift-discord")


Stars: 2
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

2 weeks ago


  • Add DiscordGateway module


  • Rename DiscordV10 module to DiscordREST

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics