(Golang) Go bindings for Discord
Find a file
2015-11-13 19:38:35 -06:00
examples renamed examples folder. 2015-11-09 14:19:15 -06:00
channel.go Huge update to Websocket support. 2015-11-12 23:25:48 -06:00
discord.go Commented out file, as it's not being used now. 2015-11-12 12:21:10 -06:00
guild.go Fixed member struct to correctly store guildid as int. 2015-11-13 10:01:43 -06:00
LICENSE Initial commit 2015-11-01 14:51:01 -06:00
README.md Updated readme. 2015-11-12 15:10:18 -06:00
restapi.go Added Guild Role Update handler 2015-11-13 19:38:35 -06:00
session.go Added Guild Role Update handler 2015-11-13 19:38:35 -06:00
structs.go Clean up, notes 2015-11-09 14:22:36 -06:00
users.go Several bug fixes causing json unmarshal errors. 2015-11-13 09:36:11 -06:00
util.go Clean up, notes 2015-11-09 14:22:36 -06:00
wsapi.go Added Guild Role Update handler 2015-11-13 19:38:35 -06:00

Discordgo

Discord API for Golang

This is my first Golang project and it is probably not maybe even barely suitable for use :)

Everything here so far is likely to change as I learn Golang better and refine the API names and such. Because of that I do not yet recommend this for use with anything super important :)

Initially my goal was to write a chatbot and I started working with https://github.com/Xackery/discord as my API. But that code didn't work 100% at the time. So I started slowly making changes to it and eventually ended up with something entirely different. Anyhow, credit goes to https://github.com/Xackery/discord for getting me started.

If you're looking for a more functional Discord API for Golang check out https://github.com/gdraynz/go-discord which I recently found. It's much more complete and will likely help me learn how to improve what I have here.

What Works

Low level functions exist for the core REST API and Websocket API.

  • Login to Discord
  • Get User information for a given user.
  • Get Private Channels (used for Private Messages) for a given user.
  • Get Servers for a given user.
  • Get Members of a given Server
  • Get Channels for a given Server
  • Get Messages for a given Channel
  • Send Messages to a given Channel
  • Start a Websocket connection and listen for and handle events.
  • Logout from Discord.

Other Discord APIs