Commit graph

737 commits

Author SHA1 Message Date
Bruce Marriner
8afeb296e6 Removed test that no longer works on non-bot accounts. 2016-06-28 12:05:32 -05:00
Bruce
cce08f8b00 Merge pull request #223 from RealCodingTeam/add-pins
Add support for message pinning, closes #219
2016-06-28 10:29:06 -05:00
RealCodingTeam
12a226f56c huh 2016-06-28 11:10:38 -04:00
Bruce
5f6a972b91 Merge pull request #221 from iopred/permstate
Use State for UserChannelPermissions when possible.
2016-06-27 08:16:40 -05:00
Chris Rhodes
b225864d96 Use State for UserChannelPermissions when possible. 2016-06-25 16:22:17 -07:00
Bruce Marriner
5f983250fe Check that the gateway websocket is ready 2016-06-24 19:42:43 -05:00
Bruce Marriner
e252652fe8 Unlock what you Lock, fool. 2016-06-24 13:42:35 -05:00
Bruce Marriner
cdd87ec432 Merge branch 'develop' of https://github.com/bwmarrin/Discordgo into develop 2016-06-24 13:12:09 -05:00
Bruce Marriner
3329f87b14 Added lots of temp logs into voice close func 2016-06-24 13:11:25 -05:00
Bruce Marriner
af57bc1789 comment Deprecation for VoiceReady and UDPReady 2016-06-24 13:10:56 -05:00
Bruce Marriner
eeb2d4f62d Add mfa_enabled to User struct 2016-06-24 11:55:52 -05:00
Bruce
5f2a99e666 Merge pull request #217 from nstafie/develop
Add function to get a single message by ID
2016-06-17 16:51:34 -05:00
Bruce Marriner
5e45d0a4fc gofmt file 2016-06-17 16:39:37 -05:00
Bruce Marriner
9069f81c6e Better gofmt check, now without an error. 2016-06-17 16:36:05 -05:00
Bruce Marriner
90b83fefeb Make travis check format, and test it.. 2016-06-17 16:28:49 -05:00
Bruce Marriner
fb663ac348 Linting 2016-06-17 15:44:01 -05:00
Bruce Marriner
ab465c38c4 drop 1.4, add tip, make golint error. 2016-06-17 15:05:23 -05:00
Bruce Marriner
d6c91f2350 Try 2? 2016-06-17 14:51:49 -05:00
Bruce Marriner
d7fd659073 Add race and vet testing. 2016-06-17 14:36:12 -05:00
Bruce Marriner
9d715837f6 Rewrite test to avoid data race 2016-06-17 14:23:40 -05:00
Bruce Marriner
11f11de41c Protect writes to DataReady with mutex lock 2016-06-17 14:23:19 -05:00
Bruce Marriner
6c4d9f0ad7 Removed unused func 2016-06-17 13:56:01 -05:00
Bruce Marriner
5322552229 Fix data race in tests 2016-06-17 13:12:42 -05:00
Bruce Marriner
32229d5de5 Fix data race 2016-06-17 12:43:22 -05:00
Bruce Marriner
face6df4b6 Do not call session onEvent as goroutine
This is a stability improvement but may have a slight performance
impact. This change will be reviewed again later.  Doing this solves a
data race issue with the Sequence number that must be tracked for
gateway resume and heartbeats.  Event specific handlers are now called
as a goroutine though.
2016-06-17 12:24:32 -05:00
Bruce Marriner
34c4ad5aa2 Fix data race issue 2016-06-17 11:01:34 -05:00
Bruce Marriner
e451cb36c3 Clear SessionID when reconnecting voice
Also added some more logging..
2016-06-17 10:24:15 -05:00
Bruce Marriner
e76dafab78 Do spam unready session error on voice reconnec 2016-06-16 14:53:05 -05:00
Nicholas Stafie
912d26b6bf
Add function to get a single message by ID 2016-06-15 16:37:55 +03:00
Bruce
79d49f86fb Merge pull request #216 from jonas747/userguildsettings
Added UserGuildSettingsEdit
2016-06-15 08:30:01 -05:00
jonas747
f2f2d6430b Added UserGuildSettingsEdit 2016-06-15 12:07:57 +02:00
Bruce Marriner
339ec5f4d7 Merge branch 'b1naryth1ef-feature/sharding' into develop 2016-06-14 13:47:51 -05:00
Bruce Marriner
9dc51d1c49 Only Shard when ShardCount > 1
Also cleaned up identify sending so there's now a function that handles
it instead of duplicate code.  Renamed handshake* structs to identify*
structs to make naming match up.
2016-06-14 13:45:38 -05:00
Bruce Marriner
d03b3eedfa Merge branch 'feature/sharding' of https://github.com/b1naryth1ef/discordgo into b1naryth1ef-feature/sharding 2016-06-14 11:45:59 -05:00
Bruce Marriner
c8d01b7f60 Reconnect now does a full disconnect and reconnect
This should hopefully provide a more stable voice connection at the cost
of making reconnects slightly more expensive for both the client and
Discord. This could be changed later once the Discord voice
documentation more clearly defines reconnect rules. Also, a bit of cleanup :)
2016-06-14 10:57:43 -05:00
Bruce Marriner
c32de41481 Force Voice reconnect on gateway reconnects
Also did a bit of clean up.
2016-06-14 10:55:20 -05:00
Bruce Marriner
d59000f544 Fix Avatar Test, so it works better. 2016-06-14 10:54:30 -05:00
Bruce Marriner
43b5f3a252 Update test to remove extra parameter 2016-06-14 10:52:02 -05:00
Bruce Marriner
233e672287 Remove examples on converting user to bot
This is no longer supported by Discord.
2016-06-14 09:29:10 -05:00
Bruce Marriner
d1184ab1fd Linting comments, remove deadcode. 2016-06-14 09:15:25 -05:00
Bruce Marriner
cec33d9477 Arange struct to reduce memory usage. 2016-06-14 09:05:19 -05:00
Bruce Marriner
ae860ce166 Follow Go naming conventions. 2016-06-14 09:04:41 -05:00
Bruce Marriner
777a81710d Removed feature to convert user to bot account.
This feature was removed by Discord and no longer works.
2016-06-14 09:04:00 -05:00
andrei
835a23a89d Implement guild sharding 2016-06-13 15:34:40 -07:00
Bruce
ed47e30df3 Merge pull request #214 from iopred/develop
Use embedded Presence in presenceUpdate
2016-06-06 08:43:53 -05:00
Chris Rhodes
323abd1a87 Use embedded Presence in presenceUpdate 2016-06-05 22:41:08 -07:00
Bruce
04c0add4fd Merge pull request #213 from iopred/fixtest
Fix handler tests.
2016-06-04 20:19:28 -05:00
Bruce Marriner
71c172a948 Clean up. 2016-06-04 20:18:56 -05:00
Chris Rhodes
84d430918b Fix handler tests. 2016-06-04 18:13:46 -07:00
Bruce Marriner
323216e171 Update GuildChannelsReorder with new endpoints 2016-06-04 19:50:20 -05:00