Skip to content

swift-discord/swift-discord

Repository files navigation

swift-discord

main develop
Test Test

A Swift library for Discord API.

Available APIs

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.2") // or `.upToNextMinor
    )
  ],
  targets: [
    .target(
      name: "MyTarget",
      dependencies: [
        .product(name: "DiscordV10", package: "swift-discord")
      ]
    )
  ]
)

About

A Swift library for Discord REST/Gateway API in all platforms.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages