Skip to content

v10.1

Latest
Compare
Choose a tag to compare
@switchupcb switchupcb released this 06 Dec 10:42
· 15 commits to v10 since this release

Dasgo

Dasgo provides 1:1 type definitions for the Discord API in Go. It aims to provide a direct representation of Discord API objects for libraries and applications that use the Discord API. This version of dasgo contains every Discord Object (defined by December 4, 2022) for the Discord API Version 10. Using dasgo to generate or alias the structs of a Discord API wrapper or bot saves developers from maintaining over 3700 lines of Go code.

Usage

Using dasgo is simple! Copy and paste the library into your project or use a code generator to parse the structs and output them in your own way. When the Discord API is updated, dasgo will be updated too. Once that happens, all you have to do is run the same process again for instant, up-to-date, error-free code.

Tip

Use go get github.com/switchupcb/dasgo@v10 to pull from the latest version 10 commit.

Update

Dasgo has been used at scale by Disgo. This had led to a major update in the specification that allows every developer to access optional and nullable functionality in a correct manner. This functionality is simplified for the end user through the introduction of functions Pointer, Pointer2, IsValue, IsValue2, and PointerCheck.