Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naamloos/basedcord
New based C# API Wrapper for Discord. Originally known as ModCore.Common.Discord, made available for everyone to use 😘
https://github.com/naamloos/basedcord
Last synced: about 1 month ago
JSON representation
New based C# API Wrapper for Discord. Originally known as ModCore.Common.Discord, made available for everyone to use 😘
- Host: GitHub
- URL: https://github.com/naamloos/basedcord
- Owner: Naamloos
- License: lgpl-2.1
- Created: 2024-07-12T13:38:14.000Z (6 months ago)
- Default Branch: based
- Last Pushed: 2024-07-13T01:15:24.000Z (5 months ago)
- Last Synced: 2024-07-13T15:43:53.880Z (5 months ago)
- Language: C#
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
New based C# API Wrapper for Discord. Originally known as ModCore.Common.Discord, made available for everyone to use 😘
## In Development
BasedCord is currently in active development. In most cases, it should not be ready for general use yet, but it is possible to get a PoC bot working in it. All of the library and even this README is prone to breaking changes.## Why use BasedCord instead of other libraries?
Really, you can use whatever you want. But is there any Discord API library that actively advertises itself to be the "based" option? Didn't think so. It's ultimately your choice, compadre! Either be based or be cringe. Just so you know, I already know what I'd choose...Be wary that there is little to no handholding in this library. The library provides a bare minimum of tools to get started (with the exception of extensions), so a certain level of familiarity with Discord's API is to be expected.
You are expected to build your own entities using the provided classes, and really it is up to you to confirm the data you're sending to Discord is correct. Luckily, in most cases Discord's API tells you exactly what fields you sent incorrectly.
TL;DR: This library is not at all beginner friendly, but provides a great deal of control, with the exception that Microsoft's hosting extensions and dependency injection are a requirement, not an optional feature.
If you want a quick example of how the library works, take a look at the [Example Bot](https://github.com/Naamloos/BasedCord/tree/based/src/BasedCord.ExampleBot).
## Getting a development environment ready
1. Dry scoop a shot of pre-workout and do 47 pushups
2. Git clone the repository
3. Open it with Visual Studio