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

swift-discord

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: [
    .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")
      ]
    )
  ]
)

GitHub

link
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

v0.0.3
2 weeks ago

Added

  • Add DiscordGateway module

Changed

  • Rename DiscordV10 module to DiscordREST

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