Commit Graph

84 Commits

Author SHA1 Message Date
Christopher F
be6abe1161 Throw when the client isn't logged in instead of connected
The previous commit prevents any connections, since the initial presence update is sent while the client is still in the 'connecting' state, rather than the 'connected' state.

This resolves the original issue by preventing a nullref, and the more recent issue by only throwing a detailed exception when the CurrentUser is null (the client isn't logged in).
2017-04-24 21:53:41 -04:00
Christopher F
f759f942f8 Throw a preemptive exception when sending presence data before connect
This prevents a later, less detailed nullref, when attempting to set the CurrentUser's presence data.

This also removes a redundant CurrentUser assignment in the SetGameAsync method, since this will be set later on in the SendStatusAsync method.
2017-04-24 20:34:18 -04:00
Christopher F
431b7fbd9f Visual Studio C#7 suggestions 2017-04-23 15:23:06 -04:00
RogueException
6192228378 Raise GuildMembersDownloaded for non-large guilds 2017-04-06 00:03:34 -03:00
RogueException
eed0598f99 Destroy audio stream when a user disconnects 2017-04-04 00:59:16 -03:00
RogueException
b1caec5f59 Add better support for invisible users 2017-04-02 15:08:28 -03:00
RogueException
58d2de2578 Added config for handler timeout duration 2017-04-02 14:49:04 -03:00
RogueException
f0202e4d4e Improved warnings for unknown entities 2017-04-02 14:38:05 -03:00
RogueException
bc2e0a19af Fixed non-guild presence updates 2017-04-01 16:44:03 -03:00
RogueException
fd72583a75 Move guild presence updates to GuildMemberUpdated. Filter duplicate UserUpdated events. 2017-04-01 15:05:51 -03:00
RogueException
27d6f4159d Lowered latency updates to debug level 2017-04-01 11:42:19 -03:00
RogueException
158ce0f922 Started adding IAudioClient incoming stream creation/destruction events 2017-03-31 03:59:12 -03:00
RogueException
5e94b97024 Added RequestOptions to RestClient methods. Added guild summary paging. 2017-03-31 03:01:49 -03:00
RogueException
13d488f43b Added slow/deadlocked event handler detection 2017-03-31 00:35:20 -03:00
RogueException
bf0be82d15 Added IWebhookUser and MessageSource 2017-03-30 23:29:30 -03:00
RogueException
3a45e9ec87 Support InvalidSession(true) 2017-03-20 23:49:17 -03:00
RogueException
254c83ecff Started adding audio receive 2017-03-15 23:40:25 -03:00
RogueException
1d5b7a2b01 Removed Unknown status 2017-03-15 23:40:25 -03:00
RogueException
3bd920ce66 Merged UserPresenceUpdated into UserUpdated 2017-03-15 23:40:25 -03:00
RogueException
92028f59e9 Removed SocketClient's explicit ConnectionState 2017-03-13 22:25:38 -03:00
RogueException
900b9b082e Removed persistant guild list for user downloads 2017-03-13 22:17:35 -03:00
RogueException
cab41851ba Prevent duplicate GuildUnavailables 2017-03-13 22:14:30 -03:00
RogueException
7e7df27024 Ready event waits until guilds are downloaded 2017-03-13 22:14:30 -03:00
Christopher F
bb78c50b6f Fix ConnectionState on DiscordSocketClient
This should resolve a plethora of relates issues, including user downloading not working (#542), possibly #531
2017-03-09 19:25:43 -05:00
RogueException
8c75e0d581 Fixed a couple audio bugs 2017-03-02 06:12:14 -04:00
Christopher F
5e1d84d918 Merge pull request #395 from LassieME/issue/359
Conflicts:
	src/Discord.Net.WebSocket/DiscordSocketClient.cs
2017-03-01 17:34:39 -05:00
RogueException
06dcac6a9f Fixed audio and a few ConnectionManager issues 2017-02-25 16:07:22 -04:00
RogueException
3190d7e26d Moved (re)connection handling to ConnectionManager 2017-02-25 16:07:22 -04:00
RogueException
8630185ac9 Started Discord.Net.Relay 2017-02-25 16:07:22 -04:00
RogueException
d321ad3e5c Moved Frame models, added default providers 2017-02-25 16:07:22 -04:00
Sindre G. Langhus
ab60f63511 Changes HasValue in Cachable to constructor argument 2017-02-21 22:11:48 +09:00
RogueException
e0a0d2100d Reduced missed heartbeat aggressiveness 2017-02-11 01:49:28 -04:00
RogueException
0cf5493c61 Fixed crash, added DM/Group channel helpers 2017-02-07 21:10:30 -04:00
Sindre Langhus
d8682a82b2 Change all signatures in the SocketClients to interfaces. 2017-02-03 15:04:54 +01:00
Sindre G. Langhus
25547407c8 Now this should be ready to, I am the worst at git. 2017-02-02 14:41:27 +01:00
Sindre G. Langhus
4b13e3fb00 Changed MessageUpdated to use Cacheable as well, after discussion with Volt. 2017-02-02 13:52:38 +01:00
Sindre G. Langhus
2a1314da25 Cleanup. 2017-02-02 13:52:35 +01:00
Sindre G. Langhus
705d71875c Simplified PR, renamed Cached to Cacheable. 2017-02-02 13:51:53 +01:00
Sindre G. Langhus
8435186d79 returns. 2017-02-02 13:51:53 +01:00
Sindre G. Langhus
959d49a26f renamed Cache to Cached, and refactored many events to use Cached 2017-02-02 13:51:35 +01:00
RogueException
b00b69234f Users can no longer directly request user downloads. 2017-01-29 23:15:48 -04:00
RogueException
a266d072db Fixed nullref during reconnect 2017-01-28 19:04:42 -04:00
RogueException
11a639c5aa Moved a few log events to the shard logger 2017-01-28 19:03:55 -04:00
RogueException
b91026f552 Stop spamming users/@me and voice/regions 2017-01-28 17:04:35 -04:00
RogueException
203265cb65 Cleaned up ShardedClient, delayed connections 2017-01-25 12:21:58 -04:00
RogueException
e2934abe29 Made API models internal. Removed Discord.Net.API. 2017-01-01 23:28:42 -04:00
RogueException
dac51db299 Added DiscordShardedClient, some DiscordSocketClient fixes. 2017-01-01 09:03:35 -04:00
RogueException
2877653a09 Readded outgoing audio 2016-12-30 00:41:29 -04:00
RogueException
8326d01f62 Isolated API definitions to their own library 2016-12-23 16:57:29 -04:00
RogueException
1efcd3daf6 Added request retry modes 2016-12-16 09:13:42 -04:00