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
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
Bruce
15f6afb2d7
Merge pull request #211 from jonas747/guildchannelsupdate
...
Added GuildChannelsReorder
2016-06-04 19:46:18 -05:00
Bruce
dfccc82030
Merge pull request #212 from iopred/cases
...
Support many more idioms.
2016-06-04 08:58:27 -05:00
Chris Rhodes
3686cc7ce3
Support many more idioms.
2016-06-03 20:59:35 -07:00
jonas747
ca07a8f9d3
Change GuildChannelsUpdate to GuildChannelsReorder
2016-06-04 04:34:09 +02:00
Bruce Marriner
0ca94d21bb
Share the love.
2016-06-02 14:57:57 -05:00
jonas747
c13c190516
Added GuildChannelsUpdate
2016-05-30 11:51:51 +02:00
Bruce Marriner
7c19b6bc86
Update error msg in test
2016-05-28 15:13:36 -05:00
Bruce Marriner
af201919a0
Move logging
2016-05-28 15:10:55 -05:00
Bruce Marriner
7039cc47dc
Reconnect to voice gateway instead of..
2016-05-28 14:58:44 -05:00
Bruce Marriner
ff0a39b9b5
Clean up.
2016-05-28 14:32:22 -05:00
Bruce Marriner
7ed2a289bc
Fix possible mutex deadlock in handle()
...
Also added some logging.
2016-05-28 13:51:17 -05:00
Bruce Marriner
32aa5718d1
Fix loop in voice reconnect
2016-05-28 10:50:18 -05:00
Bruce Marriner
754d64d339
Initial code to support voice reconnecting
...
Also includes some logging improvements and a small fix to track
speaking state and to send speaking packet if needed before sending
opus packets.
2016-05-26 19:35:17 -05:00
Bruce
45a6c0d70d
Merge pull request #207 from Harmon758/ChangeChannel-fix
...
Update ChannelID in ChangeChannel
2016-05-26 07:48:55 -05:00
Harmon758
2175a62cad
Update deaf and mute as well
2016-05-25 10:41:18 -05:00
Harmon758
78113398e5
Update ChannelID in ChangeChannel
2016-05-25 10:04:38 -05:00
Bruce
ee608e6e3e
Merge pull request #201 from VagantemNumen/examples
...
Add examples for setting account avatar
2016-05-20 19:11:02 -05:00
VagantemNumen
9f889c824e
Removed the images from the folder.
2016-05-19 20:12:44 +05:00
Bruce
80b7de53ea
Merge pull request #203 from jonas747/settingsupdt
...
Add GuildPositions field to Settings struct
2016-05-17 20:09:08 -05:00
jonas747
caadaaaf2c
Added guild_positions field to settings
2016-05-18 02:40:41 +02:00
Bruce
bd012b25ef
Merge pull request #202 from IMcPwn/develop
...
Rename GoDiscord to discordgo in LICENSE
2016-05-17 19:00:37 -05:00