Commit graph

309 commits

Author SHA1 Message Date
Chris Rhodes
cd55a59ff9 Refactor open/close logic. Support OnConnect and OnDisconnect. 2016-01-20 22:47:34 -08:00
Bruce Marriner
654c78a419 Renamed GUILD_MEMBER_DEL endpoint to just GUILD_MEMBER 2016-01-19 08:56:48 -06:00
Bruce
b5a4680b98 Merge pull request #91 from iopred/login
BREAKING - Add a new optional token to New, which is a cheaper way to login. Closes #89.
2016-01-18 09:42:42 -06:00
Chris Rhodes
3fbdb406de Fix basic example. 2016-01-17 14:19:46 -08:00
Chris Rhodes
1d9f97e283 Update New to allow an auth token to be specified. 2016-01-17 14:17:51 -08:00
Chris Rhodes
e2ab871e12 Fix colliding vars. 2016-01-17 11:59:22 -08:00
Chris Rhodes
3561ad1fa6 Add a LoginWithToken method which is a cheaper way to login. Closes #89.
Eventually we should consider allowing Login/LoginWithToken to mutate
s.Token, it would probably simplify the API a bit.
2016-01-17 11:13:02 -08:00
Bruce
bf20ffffa8 Merge pull request #90 from iopred/develop
Add support for message state.
2016-01-16 10:30:53 -06:00
Chris Rhodes
ccb504b129 Fix missing lock 2016-01-16 01:25:44 -08:00
Chris Rhodes
6b73b588ba Message tracking. 2016-01-16 01:13:40 -08:00
Chris Rhodes
0f38b22ca1 Message state tracking. 2016-01-16 00:20:41 -08:00
Bruce
8fad18a2b0 Update README.md 2016-01-14 08:04:43 -06:00
Bruce
457e4a94ee Update README.md 2016-01-14 08:04:31 -06:00
Bruce Marriner
5770f00d25 Changes :) 2016-01-14 08:03:07 -06:00
Bruce Marriner
7d1565688d Move Logo. 2016-01-14 08:02:22 -06:00
Bruce Marriner
4ac24b7fda Add Logo 2016-01-14 07:52:10 -06:00
Bruce
654cde8fe3 Merge pull request #88 from iopred/guilds
Add methods for grabbing guild images. Clean up some docs.
2016-01-12 18:41:43 -06:00
Chris Rhodes
a6a218d2fd Avoid a potential issue where State tracking was disabled and it would return a stale Guild. 2016-01-12 11:32:02 -08:00
Chris Rhodes
b4dfce0fee Add methods for grabbing guild images. Clean up some docs. 2016-01-12 11:14:51 -08:00
Bruce Marriner
daa230a3c1 Bump dev version to 0.10.0-alpha 2016-01-12 08:31:00 -06:00
Bruce Marriner
e1bfc285a0 Bump version to 0.9.0 2016-01-12 08:29:44 -06:00
Bruce Marriner
c10cdccf22 Add initial block for Voice OP5 2016-01-12 08:15:32 -06:00
Bruce
1c00077923 Merge pull request #87 from iopred/errors
Return a consistent JSON Unmarshal error.
2016-01-11 19:48:07 -06:00
Chris Rhodes
fce9a7dedc Make unmarshal methods not on the struct, that was stupid. 2016-01-11 17:39:25 -08:00
Chris Rhodes
3acc68d3ef Fix wsapi 2016-01-11 17:22:37 -08:00
Bruce Marriner
ae1d755d14 Merge branch 'develop-udp-keepalive' into develop 2016-01-11 18:38:35 -06:00
Bruce Marriner
7f15cb77c3 Initial add of working udpKeepAlive function 2016-01-11 18:37:59 -06:00
Chris Rhodes
f15b389ac8 Return a consistent JSON Unmarshal error. 2016-01-11 16:37:17 -08:00
Bruce
76106cab4e Merge pull request #86 from iopred/errors
Handle errors from Request.
2016-01-11 18:29:57 -06:00
Chris Rhodes
5b312ac464 Handle errors from Request. 2016-01-11 16:24:17 -08:00
Bruce
1fc37b8e32 Merge pull request #82 from iopred/patch-4
Add GUILD_SPLASH endpoint. Closes #76.
2016-01-11 15:07:55 -06:00
Bruce Marriner
591162a2ff Don't close what doesn't exist. 2016-01-11 14:59:24 -06:00
Chris Rhodes
5df7209ee4 Add GUILD_SPLASH endpoint. Closes #76. 2016-01-11 12:40:59 -08:00
Bruce Marriner
80cfd644b4 Added tests for restapi.go 2016-01-11 14:35:11 -06:00
Bruce Marriner
367594be1f Testing Close(), store token from Email/Pass New if ran. 2016-01-11 14:33:50 -06:00
Bruce Marriner
2469147d8a Even better checking that we don't close nil/closed chans. 2016-01-11 14:33:01 -06:00
Bruce
166fb1f5b5 Merge pull request #81 from iopred/patch-3
Remove the userID param from UserSettings.
2016-01-11 14:25:04 -06:00
Chris Rhodes
b26c168d94 Remove the userID param from UserSettings. 2016-01-11 12:17:53 -08:00
Bruce Marriner
6274ab9053 Hackish fix so we don't try to close nil or closed channels. 2016-01-11 14:05:22 -06:00
Bruce Marriner
61b3b8122c Only close chans if they are open, closes #80 2016-01-11 13:23:11 -06:00
Bruce Marriner
1da7bf090b Changed envars from USERNAME to EMAIL 2016-01-11 13:02:16 -06:00
Bruce Marriner
6de9b19ac8 Merge branch 'develop' of https://github.com/bwmarrin/Discordgo into develop 2016-01-11 12:09:30 -06:00
Bruce Marriner
614ecda516 Fix Logout function. Closes #50 2016-01-11 12:06:25 -06:00
Bruce Marriner
dc9357f61d Changes to make these work in same folder. 2016-01-11 12:06:06 -06:00
Bruce Marriner
d71a43192f Renamed to match source 2016-01-11 12:04:42 -06:00
Bruce Marriner
806c9ae391 Make main folder a cluttered mess in the name of idiomatic. 2016-01-11 12:02:59 -06:00
Bruce
687d8278df Merge pull request #78 from iopred/img
BREAKING CHANGE - Remove userID parameter for REST API methods that can only be called for @me.
2016-01-11 09:56:15 -06:00
Bruce
9376774db8 Merge pull request #79 from iopred/attachments
Add structs for message Attachments and Embeds. Closes #57 #58
2016-01-11 09:39:08 -06:00
Chris Rhodes
735b01b158 Embeds. 2016-01-10 22:12:45 -08:00
Chris Rhodes
7b34805950 Merge remote-tracking branch 'bwmarrin/develop' into attachments 2016-01-10 21:39:21 -08:00