https://github.com/switchupcb/dasgo
Discord API Specification Type Definitions for Go.
https://github.com/switchupcb/dasgo
Last synced: 10 months ago
JSON representation
Discord API Specification Type Definitions for Go.
- Host: GitHub
- URL: https://github.com/switchupcb/dasgo
- Owner: switchupcb
- License: bsd-3-clause
- Created: 2022-04-06T14:58:13.000Z (about 4 years ago)
- Default Branch: v10
- Last Pushed: 2025-02-19T02:54:43.000Z (over 1 year ago)
- Last Synced: 2025-05-17T09:37:00.255Z (about 1 year ago)
- Language: Go
- Size: 238 KB
- Stars: 18
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Dasgo
[](https://pkg.go.dev/github.com/switchupcb/dasgo)
[](https://github.com/switchupcb/dasgo/blob/main/LICENSE)
Dasgo provides a direct representation of [Discord API Objects](https://discord.com/developers/docs/reference) in **Go**.
**Dasgo is mentioned in the [Official Discord Developer Documentation](https://discord.com/developers/docs/topics/community-resources#api-types).**
## Using Dasgo
There are two ways to use `dasgo`.
### Alias
#### Import
Get a specific version of the `dasgo` library by specifying a tag or branch.
```
go get github.com/switchupcb/dasgo@latest
```
_Dasgo branches are referenced by API version (i.e `v10`)._
#### Definition
Use an alias to rename the type in your project.
```go
// alias dasgo.User to DiscordUser in your application or library.
type DiscordUser dasgo.User
```
### Generation
Use copy-paste or code generation to add `dasgo` types to your repository.
## Specification
For more information, read the [Specification](CONTRIBUTING.md#specification).
## Contribution
You can contribute to this repository by reading [Contribution](CONTRIBUTING.md).
### License
The [BSD 3-Clause](LICENSE) is a permissive license.
## Libraries
Libraries that use Dasgo.
| Library | Description |
| :------------------------------------------- | :--------------------------------------------- |
| [Disgo](https://github.com/switchupcb/disgo) | Discord API Wrapper, Shard Manager, and Cache. |