Alex Gravely
ec03883e26
Create unspecified channel object for unknown channel types ( #811 )
* Partial fix of #810 , addresses critical connection issues.
* Implement fix for REST.
* Implement fix on RestChannel.
8 years ago
Christopher F
608bc359ee
Removed IChannel#Nsfw, added to ITextChannel
8 years ago
Christopher F
5d7f2fc7ec
Add GetReactionUsersAsync(IEmote) overload ( #731 )
* Add GetReactionUsersAsync(IEmote) overload
Resolves #730
* Remove obsolete GetReactionUsersAsync(string) overload
8 years ago
Christopher F
4205d68b5a
Don't throw when receiving a presence for a user that doesn't exist ( #746 )
8 years ago
Christopher F
1ffcd4bfa7
Changed Guild#DefaultChannel to resolve the first accessible channel ( #777 )
* Changed Guild#DefaultChannel to resolve the first accessible channel
Resolves #776
This change is inline with hammerandchisel/discord-api-docs#329
RestGuild#DefaultChannelId is now obsolete and will throw a
NotSupportedException.
* RestGuild#DefaultChannelId will fall back to the guild ID
Adding an exception here would be a breaking change, so this was agreed
to fall back to the previous behavior, which would just return the guild
ID.
8 years ago
Christopher F
182f00f8ce
Reworked IChannel.IsNsfw to support the new API flag ( #771 )
IChannel.IsNsfw will now return false when being used on any channel
that is not an ITextChannel. When being used on an ITextChannel, this
will now account for the API flag, and fall back to the channel name.
(this is gross design, thanks discord)
8 years ago
RogueException
f997089174
Try to pull DM channels from cache on CHANNEL_CREATE
8 years ago
Alex Gravely
6b5a6e7f1f
Fix everyone mention. ( #755 )
* Update RestRole.cs
Fix everyone mention.
* Update SocketRole.cs
Fix everyone mention.
* I'm good at this, I swear.
8 years ago
Joe4evr
8cd99beb62
Unify ShardedCommandContext with SocketCommandContext ( #739 )
* Make ShardedCommandContext derive from SocketCommandContext
* Explicitly re-implement ICommandContext.Client
8 years ago
RogueException
14dfc48df3
Style cleanup
8 years ago
Pat Murphy
224d0403db
Adding Equals() overloads for reactions/emotes ( #723 )
8 years ago
Christopher F
1ce1c019b3
Add support for audit log reasons ( #708 )
* Add support for audit log reasons
* Made changes per discussion
8 years ago
Alex Gravely
707ec95717
Add SocketRole.Members property ( #659 )
* Add SocketRole.Members property
* Change Members to IEnumerable.
8 years ago
Amir Zaidi
d088d7b05c
Add packetLoss argument for PCM streams, change FrameBytes to FrameSamplesPerChannel in OpusEncodeStream ( #677 )
8 years ago
Christopher F
5f04e2beba
Cache outgoing presence data if disconnected ( #705 )
This resolves #702
8 years ago
Christopher F
1942637380
Merge pull request #656 from AntiTcb/fix/GetDMChannelAsync
Remove IUser.CreateDMChannelAsync / Fix SocketGlobalUser.DMChannel
8 years ago
AntiTcb
fb57a61432
Rename to GetOrCreateDMChannelAsync
8 years ago
Alex Gravely
8c2a46e9e7
Add ulong overload to IMessageChannel.DeleteMessagesAsync ( #649 )
8 years ago
AntiTcb
73611d1fab
Remove IUser.CreateDMChannelAsync, implicitly implement IUser.GetDMChannelAsync
8 years ago
RogueException
8eb9b2071c
Set hasHeader in SodiumEncrypt
8 years ago
RogueException
333881a711
Expose audio header more often
8 years ago
AntiTcb
7db38f32bb
Attach/Remove DMChannel to SocketGlobalUser.DMChannel property
8 years ago
AntiTcb
33a91ba3de
Remove redundant explicit interface definition.
8 years ago
AntiTcb
aeef5d0893
Update DM channel on entity updates.
8 years ago
AntiTcb
6fed78025c
Create DM channel if one does not exist.
8 years ago
RogueException
4c7fad78e1
Build promises when guild is unavailable
8 years ago
RogueException
285a0e5817
Updated deps, cleaned csprojs
8 years ago
Sindre Langhus
82a413ace6
Fix for empty user objects after GUILD_MEMBER_REMOVE ( #641 )
* Made GetOrCreateUser always call AddRef and added check to PRESENCE_UPDATE to avoid readding users who have been removed from guilds
* Removed AddRef as per dev guild discussion
8 years ago
RogueException
4a128b326b
Increment globaluser refs on private channel creation
8 years ago
RogueException
bd5ec0a29a
Increment GlobalUser reference count on GuildUser creation
8 years ago
Christopher F
576a52cdc6
Restructure and replace emojis with a new emote system ( #619 )
8 years ago
Christopher F
7f1fc286cf
Add IChannel.Nsfw, RequireNsfw precondition ( #633 )
* Add IChannel.Nsfw, RequireNsfw precondition
* Refactored IChannel.Nsfw to IsNsfw, removed NsfwUtils
Per pull-request feedback
* proper nsfw channel check
8 years ago
Sindre Langhus
90ac9027cf
Replace Where+FirstOrDefault with FirstOrDefault in SocketClient ( #636 )
* Replace Where.FirstOrDefault with FirstOrDefault
* Replace Where+FirstOrDefault in ClientHelper
8 years ago
RogueException
a306d83283
Added net45 TFM
8 years ago
RogueException
f8b9acc4a1
Use implicit package references ( #626 )
8 years ago
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).
8 years ago
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.
8 years ago
Christopher F
431b7fbd9f
Visual Studio C#7 suggestions
8 years ago
Christopher F
6000b15c4d
C#7 TODOs
8 years ago
RogueException
e762dddfbb
Added SnowflakeUtils
8 years ago
RogueException
8d9e11c08a
Exposed IAudioClient.SetSpeakingAsync
8 years ago
RogueException
d2a7be91e5
Added experimental jitter buffer
8 years ago
RogueException
79fd14a95f
Various audio fixes
8 years ago
RogueException
39b0a998c8
Fixed a few audio constants
8 years ago
RogueException
e92cfd20ac
Audio bugfixes and improvements.
8 years ago
RogueException
424216b793
Disable FEC decoding
8 years ago
RogueException
22a7b7dbba
Support more incoming RTP packets types
8 years ago
RogueException
ee4cde69a4
Added UDP keepalives and latency
8 years ago
RogueException
65154e0d4a
Enable FEC decoding
8 years ago
RogueException
483d26093b
Bump up Opus PLP to 30
8 years ago