|
преди 9 години | |
---|---|---|
_examples | преди 9 години | |
LICENSE | преди 9 години | |
README.md | преди 9 години | |
channel.go | преди 9 години | |
client.go | преди 9 години | |
discord.go | преди 9 години | |
notes.md | преди 9 години | |
server.go | преди 9 години | |
session.go | преди 9 години | |
structs.go | преди 9 години |
Golang Discord API.
This is my first Golang project and it is probably not even suitable for use :)
Everything here so far is likely to change as I learn Golang better and refine the API names and such.
Initially my goal was to write a chatbot and I started working with https://github.com/Xackery/discord as my API. But that code doesn't work 100% and so I started slowly making changes to it. Anyhow, credit goes to https://github.com/Xackery/discord for getting me started.
If you're looking for a 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.
Right now I'm focusing on the REST API and have not done any Websockets work. You can do the following things using the client.go functions.
All the code in the other files such as discord.go, session.go, etc are a playground where I'm working to provide another and easier way to access the API.
You can look at the demo.go example file to see all of the client.go functions in use.