Swiftpack.co - SwiftcordApp/DiscordKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by SwiftcordApp.
SwiftcordApp/DiscordKit 0.1.0
The Discord API implementation behind Swiftcord, implemented completely from scratch in Swift
⭐️ 78
🕓 35 weeks ago
macOS
.package(url: "https://github.com/SwiftcordApp/DiscordKit.git", from: "0.1.0")

DiscordKit

Discord

The Discord API implementation that powers Swiftcord, a native Discord client for macOS also written in Swift.

A (mainly) fully functional Discord API library written from scratch fully in Swift! Currently only supports user accounts, bot support coming soon. Check out the bot-support branch and SwiftcordApp/DiscordKit#18 for a quick peep into what we've been up to ;D

If you like DiscordKit, please give it a ⭐ star, or consider sponsoring! It helps motivate me to continue developing it

Documentation

WIP Developer Documentation is available here.

Platform Support

Currently, DiscordKit only offically supports macOS versions 12 and up. Theoretically, You should be able to compile and use DiscordKit on i(Pad)OS/tvOS, however this has not been tested and is considered an unsupported setup.

Linux and Windows is not supported at the moment, due to our reliance on Apple's Security and SystemConfiguration frameworks. We have not blocked building DiscordKit on Linux and Windows in the event that support for those frameworks is added in the future. We may rework the code to add support for linux/windows in the future.

Adding DiscordKit to your project

SPM:

Add the following to your Package.swift:

.package(url: "https://github.com/SwiftcordApp/DiscordKit", branch: "main"),

Currently, DiscordKit is in alpha, so it's recommended to use the latest commit on the main branch.

GitHub

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

Dependencies

Release Notes

Initial Release
38 weeks ago

The initial release of DiscordKit. Currently, DiscordKit is tailor-made for Swiftcord, but it can also be used on its own or as a reference for another package.

It supports most documented REST endpoints that use POST, GET or DELETE requests, as well as a very robust Gateway implementation, albeit only for human accounts.

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