Skip to content
@SwiftcordApp

Swiftcord

Swiftcord - A fully native Discord client for macOS, built 100% in SwiftUI!

Contact Us!

Wanna talk about Swiftcord/Discord or just hang around? Join us in Discord!

A beautiful and blazingly fast native macOS Discord client, built in SwiftUI.

Downloads

Give Swiftcord a try! Nightly builds (recommended) are built from every commit on main, while releases are more stable but updated less frequently.

Nightly build action status  GitHub release (latest by date)


The missing Swift Discord library. Build elegant Discord bots with a simple resultBuilder-powered slash command builder.

Here's all you need to build a bot with DiscordKit (it's that simple):

import DiscordKitBot

let bot = Client(intents: .unprivileged)

// Guild to register commands in. If the COMMAND_GUILD_ID environment variable is set, commands are scoped
// to that server and update instantly, useful for debugging. Otherwise, they are registered globally.
let commandGuildID = ProcessInfo.processInfo.environment["COMMAND_GUILD_ID"]

bot.ready.listen {
    print("Logged in as \(bot.user!.username)#\(bot.user!.discriminator)!")

    try? await bot.registerApplicationCommands(guild: commandGuildID) {
        NewAppCommand("ping", description: "Ping me!") { interaction in
            try? await interaction.reply("Pong!")
        }
    }
}

bot.login() // Reads the bot token from the DISCORD_TOKEN environment variable and logs in with the token

// Run the main RunLoop to prevent the program from exiting
RunLoop.main.run()

Pinned

  1. Swiftcord Swiftcord Public

    A fully native Discord client for macOS built 100% in Swift!

    Swift 1.8k 83

  2. DiscordKit DiscordKit Public

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

    Swift 319 34

Repositories

Showing 8 of 8 repositories
  • Swiftcord Public

    A fully native Discord client for macOS built 100% in Swift!

    SwiftcordApp/Swiftcord’s past year of commit activity
    Swift 1,786 GPL-3.0 83 21 11 Updated May 29, 2024
  • DiscordKit Public

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

    SwiftcordApp/DiscordKit’s past year of commit activity
    Swift 319 34 4 4 Updated May 29, 2024
  • SwiftDiscordProtos Public

    Discord Protobufs, compiled for Swift as a package

    SwiftcordApp/SwiftDiscordProtos’s past year of commit activity
    Swift 0 0 0 0 Updated Mar 18, 2024
  • SwiftcordApp/SwiftcordApp.github.io’s past year of commit activity
    Astro 0 0 0 0 Updated Sep 26, 2023
  • .github Public
    SwiftcordApp/.github’s past year of commit activity
    0 0 0 0 Updated Sep 26, 2023
  • DiscordKitBotDemo Public

    A macOS CLI Swift app to demonstrate the usage of DiscordKit for creating Discord bots in Swift

    SwiftcordApp/DiscordKitBotDemo’s past year of commit activity
    Swift 2 4 0 0 Updated Feb 26, 2023
  • DiscordKitGettingStarted Public

    The branches in this repo can serve as a reference for how your project should look after each step in the guide!

    SwiftcordApp/DiscordKitGettingStarted’s past year of commit activity
    Swift 1 0 0 0 Updated Dec 20, 2022
  • ETFKit Public

    Encode and decode Codables to Erlang's External Term Format (ETF)

    SwiftcordApp/ETFKit’s past year of commit activity
    Swift 2 0 0 0 Updated Jun 11, 2022

Top languages

Loading…

Most used topics

Loading…