Christopher F
347c5a0d39
Disable obsolete warnings in files that reference TokenType.User
7 years ago
Chris Johnston
f8108871d6
Typo fix for SocketGuildUser.Hierarchy description ( #831 )
7 years ago
Alex Gravely
9b7afec4cc
Add BaseSocketClient object. ( #773 )
* Add BaseDiscordClient. Add various missing RequestOptions args.
DiscordSocketClient and DiscordShardedClient's shared members now exist in this abstract class.
* Add ShardReady event.
* Style consistency. Remove extraneous overloads.
Remove extraneous overloads.
* Add BaseSocketClient#DownloadUsersAsync().
Style cleanups.
* Add ShardLatencyUpdated event.
Style cleanup.
* Hook LatencyUpdated for ShardedClient.
* Begone whitespace.
* I'm good at this, I swear. >_>
* Add back DiscordShardedClient.UserPresenceUpdated
* Add ObsoleteAttribute
* Removing the UserPresenceUpdated event.
7 years ago
Christopher F
fc5adca94e
Obsolete TokenType.User
7 years ago
Chris Johnston
30e867a183
Implement welcome message channels ( #819 )
7 years ago
Joe4evr
e25054bb3b
Update WS4Net dependency to 0.15.0 ( #812 )
Also changes target to NetStandard1.3
7 years ago
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.
7 years ago
Mark Gross
479361bbea
Condense redundant AddField overloads in EmbedBuilder ( #790 )
* Remove extra AddField overload in EmbedBuilder
* Remove AddInlineField()
7 years ago
Christopher F
4846264074
Add IsNsfw to TextChannelProperties
7 years ago
Christopher F
608bc359ee
Removed IChannel#Nsfw, added to ITextChannel
7 years ago
Christopher F
5d7f2fc7ec
Add GetReactionUsersAsync(IEmote) overload ( #731 )
* Add GetReactionUsersAsync(IEmote) overload
Resolves #730
* Remove obsolete GetReactionUsersAsync(string) overload
7 years ago
Hsu Still
0de5d5b02b
Added SendFileAsync ( #774 )
7 years ago
Joe4evr
94f7dd2ab8
Remove EmbedBuilder -> Embed implicit conversion ( #801 )
7 years ago
Christopher F
e991715bac
Added CommandService.CommandExecuted ( #747 )
7 years ago
Christopher F
0fdb2d2c3b
Bump version to 2.0.0-alpha
7 years ago
Izumemori
9c81ab9fe4
changed NameAttribute to work for parameter ( #765 )
7 years ago
Alex Gravely
cb0ff7817d
Add NullableTypeReader ( #785 )
* Add NullableTypeReader.
Primitives now also load a NullableTypeReader<T> and any value types that get a typereader added will also have a NullableTypeReader<T> added for it.
* Remove unnecessary null check.
* Added docstrings.
7 years ago
Christopher F
4205d68b5a
Don't throw when receiving a presence for a user that doesn't exist ( #746 )
7 years ago
Christopher F
3c1e76615e
Preemptive Ratelimits should be logged under Verbose
7 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.
7 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)
7 years ago
RogueException
361bfc1a90
Bumped version to 1.1.0-alpha
8 years ago
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
7 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
7 years ago
RogueException
f997089174
Try to pull DM channels from cache on CHANNEL_CREATE
7 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.
7 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?
7 years ago
Christopher F
22b969cbc7
Test the Discord.Color structure ( #786 )
This provides tests to ensure the following:
- Creating a Color
- Creating a Default Color
- Accessing a Color's Raw Value
- Accessing a Color's translated RGB values
7 years ago
Christopher F
95b78df9f0
URL-Encode reasons on Kick/Ban ( #787 )
This resolves #784
7 years ago
RogueException
dfcb4b39fb
Allow duplicate RequireBotPermissionAttribute
7 years ago
Alex Gravely
c4dcb9dc17
Update client.cs ( #752 )
* Update client.cs
Let's not have the client be a local variable, hm?
* Update complete.cs
* Update complete.cs
* Update client.cs and complete.cs
Let's not have the client be a local variable, hm?
8 years ago
Hsu Still
b59c48b9ec
Added IServiceProvider ( #753 )
8 years ago
Joe4evr
0bdc2455bc
Add line to show subscribing to CommandService#Log ( #756 )
8 years ago
RogueException
0a41694f01
Update Discord.Net.nuspec
8 years ago
RogueException
710e1824bf
Update LICENSE
8 years ago
Christopher F
8068a0ba0e
Merge pull request #654 from ObsidianMinor/dev
Fixed RestGuildUser not updating inherited RestUser properties
8 years ago
Christopher F
263864f579
Bumped version to 1.0.2
8 years ago
RogueException
ff10f17cba
Proper versioning is hard
8 years ago
RogueException
d27657d193
Removed hardcoded suffix from nuspec
8 years ago
RogueException
b35fbac017
Removed version from README
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
Joe4evr
8cd99beb62
Unify ShardedCommandContext with SocketCommandContext ( #739 )
* Make ShardedCommandContext derive from SocketCommandContext
* Explicitly re-implement ICommandContext.Client
8 years ago
Finite Reality
d2afb06942
Make the "cannot be loaded" warning fire correctly ( #729 )
Why am I such a bad programmer? Maybe I'm just bad with git. Maybe I'm
just bad in general. Maybe I should resign from programming.
8 years ago
Joe4evr
b6dcc9e8d8
Add back the case for ParameterPreconditions ( #735 )
8 years ago
Finite Reality
7597cf5baa
Fix CalculateScore throwing on missing parameters ( #727 )
* Fix CalculateScore throwing on missing parameters
* Bump to version 1.0.1
8 years ago
Christopher F
c316b29286
Bump version to 1.0.1
8 years ago
RogueException
26bc0b300d
Updated version to 1.0
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