DiscordGo is a Go package with low-level bindings to the Discord REST API, websocket interface, and voice interface. You import it into Go programs that talk to Discord.
Overview
DiscordGo is a Go library that exposes bindings to Discord's API for building bots and integrations. It aims for broad coverage of Discord API endpoints plus websocket and voice interfaces.
You install it with go get from tagged releases and import the package into your project. You construct a Discord client, register event handlers, and call API functions from Go code.
The project notes that both the library and Discord's API may change over time; reference documentation is generated from code comments. Example projects and community links are listed for learning patterns.
Contributions follow issue discussion first and emphasize staying close to a direct mapping of Discord's API rather than adding higher-level enhancements in the core package.
Key features
- Discord REST API bindings
- Websocket event interface
- Voice interface support
- Go get installation
- Code comment documentation
- Example projects list
Use cases
- Discord bots written in Go
- Custom Discord integrations
- Voice-enabled Discord tools