Commit graph

335 commits

Author SHA1 Message Date
Chris Rhodes
5aab9dc685 Use an array of role ids 2016-01-27 09:45:14 -08:00
Chris Rhodes
b0188cd71e Support GuildMemberEdit api. 2016-01-27 01:37:43 -08:00
Bruce Marriner
7cc7b09957 Moved Voice.Ready = true into opusSender 2016-01-26 21:42:37 -06:00
Bruce Marriner
4b1baec757 Added opusSender func 2016-01-26 20:22:01 -06:00
Bruce Marriner
94b6199051 ShouldReconnectOnError and Compress are defaulted to true with New() 2016-01-24 13:21:32 -06:00
Bruce
8453404305 Merge pull request #97 from iopred/compress
Support for compressed data in wsapi. Closes #40.
2016-01-24 13:20:21 -06:00
Chris Rhodes
fd32614a63 Make compression optional, clean up some comments and unused fields. 2016-01-24 09:49:41 -08:00
Chris Rhodes
5a3740df0c 💩 2016-01-23 21:12:57 -08:00
Chris Rhodes
a08dde4262 Support zlib compression. 2016-01-23 21:09:30 -08:00
Chris Rhodes
25a1b2ea48 Close. 2016-01-23 20:24:52 -08:00
Bruce Marriner
ad1d0fac60 Tiny bit more test. 2016-01-22 17:17:06 -06:00
Bruce
54e14babb2 Merge pull request #94 from iopred/login
Support ShouldReconnectOnError with exponential backoff up to 10 minutes.
2016-01-22 08:04:11 -06:00
Chris Rhodes
e94e14e9d2 Support ShouldReconnectOnError with exponential backoff up to 10 minutes. 2016-01-21 14:15:24 -08:00
Bruce
94b087cd49 Merge pull request #93 from iopred/login
BREAKING - Refactor open/close logic. Support OnConnect and OnDisconnect. Closes #5.
2016-01-21 13:54:05 -06:00
Chris Rhodes
ddddfa3644 Prevent heartbeat from sending on nil websocket. 2016-01-21 11:15:44 -08:00
Chris Rhodes
d6d6c749ea Prevent listen from reading from nulled out web socket. 2016-01-21 11:11:18 -08:00
Chris Rhodes
bf5ca4d690 Fix comment. 2016-01-21 10:59:30 -08:00
Chris Rhodes
8b39278c3e Get rid of Listen. 2016-01-21 10:58:13 -08:00
Chris Rhodes
e8d8f03214 Clean up ready timing, fix potential race with starting heartbeats. 2016-01-21 09:33:05 -08:00
Chris Rhodes
c4869d7a43 Remove handshake. 2016-01-21 09:19:20 -08:00
Chris Rhodes
7d984e7df6 Add test for u/p/token login. 2016-01-20 23:48:30 -08:00
Chris Rhodes
2cbd402bae Make InvalidToken test useful again. 2016-01-20 23:45:36 -08:00
Chris Rhodes
5f9326d165 Clean up tests further. 2016-01-20 23:38:17 -08:00
Chris Rhodes
13086b8da3 Fix tests. 👌 2016-01-20 23:14:42 -08:00
Chris Rhodes
2a9538e9f1 I must stop doing last minute changes. 2016-01-20 23:01:20 -08:00
Chris Rhodes
7a9b9428ee Re-add old todo. 2016-01-20 22:52:42 -08:00
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