Up to date Discord API Typings for Golang. Inspired by discordjs/discord-api-types
go get -u github.com/denkylabs/discord-api-types-go$ cd $GOPATH
$ mkdir -p src/github.com/denkylabs
$ cd src/github.com/denkylabs
$ git clone https://github.com/denkylabs/discord-api-types-go.git
$ cd discord-api-types-go
$ go installThe exports of each package is split into three main parts:
-
Everything exported with the
APIprefix represents a payload you may get from the REST API or the Gateway. -
Everything exported with the
Gatewayprefix represents data that ONLY comes from or is directly related to the Gateway. -
Everything exported with the
RESTprefix represents data that ONLY comes from or is directly related to the REST API. -
Anything else that is miscellaneous will be exported based on what it represents (for example the
RESTroute object or theLocaletype and its constants).
Warning: This package documents just KNOWN (and documented) properties. Anything that isn't documented will NOT be added to this package (unless said properties are in an open Pull Request to Discord's API Documentation repository or known through other means and have received the green light to be used). For clarification's sake, this means that properties that are only known through the process of data mining and have not yet been confirmed in a way as described will NOT be included.
- discordjs/discord-api-types
- discord/discord-api-docs
- Discord Developer Portal
- Discord Developers server
| Go version | Status |
|---|---|
| Go 1.18 | |
| Go 1.17 | Not supported. |
| Go 1.16 | Not supported. |