DiscordKit Versions Save

The Discord API implementation behind Swiftcord, implemented completely from scratch in Swift

1.0.0

11 months ago

DiscordKit for Bots: The missing Discord framework for bots you've been waiting for!

Now, you can build Discord bots in Swift with elegance, with beautiful and clean slash command builders and a well thought out API! Built on a solid battle-tested core also used in Swiftcord, DiscordKit's bot support has robust rock-solid performance even in the face of network instabilities and other unexpected conditions.

Although I've tried to consider as many common use cases, DiscordKit for Bots is still in early phases of support and might not have good support for more advanced uses. Contributions are welcome! <3

This is DiscordKit's first stable release, and as such there isn't a previous release to compare against. Here are some features of note:

  • Beautiful SwiftUI-like slash command builders, including modifiers and execution callbacks:

    NewAppCommand("hello", description: "Get a nice hello message") { interaction in
        print("Received hello interaction!")
        try? await interaction.reply("Hello there!")
    }
    

    produces the following (operational) command:

    image

    Register and respond to commands in one place!

  • Battle-tested WebSocket gateway reconnection logic, with zlib-stream compression support

  • Well-documented and well-though-out (bot) API

Get up to speed quick with the guide

Coming Soon:

  • Button component support
  • Image/attachment up/downloading

0.1.0

1 year 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.