Alex Gravely
865080add9
Fix CreateGuildAsync not sending icon stream. ( #768 )
* Fix CreateGuildAsync not doing anything with the input stream for the guild icon.
Also fixes an issue with potential stream types that throw a NotSupportedException when checking its properties. [Apparently, they exist.](https://github.com/dotnet/corefx/blob/master/src/System.Net.Http.WinHttpHandler/src/System/Net/Http/WinHttpResponseStream.cs )
* Merged with old method
* Removed duplicate decl
8 years ago
Christopher F
506a6c96c9
Throw when attempting to add or remove a member's EveryoneRole ( #781 )
* Throw when attempting to add or remove a member's EveryoneRole
This resolves #780
* Removed braces
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
Jay Malhotra
57a461c9ff
NullOrEmpty -> NullOrWhiteSpace ( #758 )
Seeing as D.NET will warn you about an impending BadRequest if you try and send an empty field, why not make it warn about the impending BadRequest if you try and send a whitespace field?
8 years ago
Christopher F
95b78df9f0
URL-Encode reasons on Kick/Ban ( #787 )
This resolves #784
8 years ago
Christopher F
8068a0ba0e
Merge pull request #654 from ObsidianMinor/dev
Fixed RestGuildUser not updating inherited RestUser properties
8 years ago
Pat Murphy
d89804d7c7
Fix potential nullref in embedBuilder value setter ( #734 )
* Fix potential nullref in embedBuilder value setter
* Null check on footer iconUrl
* Adding checks for the other URL properties
* Adding IsNullOrUri extension
* Setting StringExtensions as internal
8 years ago
RogueException
ba18179eb8
Fixed compile error
8 years ago
RogueException
3b78817c54
Added int overload to EmbedBuilderExtensions
8 years ago
RogueException
14dfc48df3
Style cleanup
8 years ago
Finite Reality
fdd38c8d7f
Add embed builder extensions ( #460 )
* Add embed builder extensions
People in #dotnet_discord-net suggested that this should be part of
the lib after I demonstrated it
* Move some extensions into EmbedBuilder [2]
Apparently git didn't like that previous commit
* Fix error with EmbedBuilderExtensions
A summary of issues which happened:
- Git decided to add an amend commit (I told it to quit?)
- VS Code thinks everything is an error so it wasn't helpful
- dotnet decided to think there was no error until I deleted all
build outputs and rebuild
Sometimes I question my ability to use version control properly.
8 years ago
Christopher F
7837c4862c
Revert change of all Url types on IEmbed to string ( #724 )
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
Christopher F
256af0b269
Merge remote-tracking branch 'origin/issues/667' into dev
8 years ago
Pat Murphy
5601d00285
Add various property validation in EmbedBuilder ( #711 )
* Add various property validation in EmbedBuilder
* Embed URI changes
Changes property types for any URLs in Embeds to System.URI.
Adding field name/value null/empty checks.
* including property names in argumentexceptions
* Adds overall embed length check
8 years ago
Christopher F
33e765f8f5
Use StringEnum converter in API model
8 years ago
Christopher F
0708bc5d48
Add EmbedType enum
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
ObsidianMinor
652fd30f65
Fixed RestGuildUser not updating RestUser properties
8 years ago
RogueException
feebcb4838
Update System.Net.Http to 4.3.2
8 years ago
RogueException
285a0e5817
Updated deps, cleaned csprojs
8 years ago
Christopher F
d189bb9748
Expose the 'fields' collection on EmbedBuilder ( #603 )
* remove tip in docs about SocketEntity.Discord
* Expose the 'Fields' collection on EmbedBuilder
After some discussion I decided that there was really no reason to keep this private, and it didn't really go along with the rest of the design of the EmbedBuilder.
This is NOT a breaking change.
Exposing this property should not have any negative effects.
* Don't allow EmbedBuilder's Fields to be set to null
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
bd85bbf30a
Moved UserAgent to DiscordConfig
8 years ago
RogueException
c6ccddb4ce
Added UnstableRestClientProvider
8 years ago
RogueException
a306d83283
Added net45 TFM
8 years ago
RogueException
f8b9acc4a1
Use implicit package references ( #626 )
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
ff67c0d9c3
Removed unused canceltoken
8 years ago
Confruggy
5dba95fe59
Update ChannelHelper.cs ( #606 )
* Update ChannelHelper.cs
* typo
8 years ago
Christopher F
660d4b0bf6
Add an upper limit to prune length when banning a user ( #611 )
Messages may only be pruned between 0 and 7 days, otherwise a 400 will be thrown.
8 years ago
RogueException
1d57d0cba6
Add support for invites without attached users
8 years ago
RogueException
284af7b6e2
Support large DeleteMessages collections
8 years ago
RogueException
cbb38bd101
Hide Entity.Discord property
8 years ago
RogueException
d6b6a95a2e
Renamed ClientAPIUrl -> APIUrl
8 years ago
RogueException
e0e28c6dd1
Changed EmbedChannel's type to GuildChannel
8 years ago
RogueException
aae2667fed
Keep tags sorted when adding everyone/here mentions
8 years ago
RogueException
a7f50e7f59
Added EmbedBuilder field helpers
8 years ago
RogueException
fd72583a75
Move guild presence updates to GuildMemberUpdated. Filter duplicate UserUpdated events.
8 years ago
RogueException
b5d817f171
Cleaned up csprojs, added support for tag builds.
8 years ago
RogueException
8dfa0220c3
Prevent overlapping tags
8 years ago
RogueException
7d1cae8ae8
Fixed tag parsing with incomplete tags
8 years ago
RogueException
57013d5639
Don't crash if a rate limit header is unparsable
8 years ago