Alex Gravely
60df728714
Removing the UserPresenceUpdated event.
8 years ago
Alex Gravely
333d5f4bdb
Merge remote-tracking branch 'source/dev' into BaseSocketClient
8 years ago
Chris Johnston
30e867a183
Implement welcome message channels ( #819 )
8 years ago
Joe4evr
e25054bb3b
Update WS4Net dependency to 0.15.0 ( #812 )
Also changes target to NetStandard1.3
8 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.
8 years ago
Mark Gross
479361bbea
Condense redundant AddField overloads in EmbedBuilder ( #790 )
* Remove extra AddField overload in EmbedBuilder
* Remove AddInlineField()
8 years ago
Christopher F
4846264074
Add IsNsfw to TextChannelProperties
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
Hsu Still
0de5d5b02b
Added SendFileAsync ( #774 )
8 years ago
Joe4evr
94f7dd2ab8
Remove EmbedBuilder -> Embed implicit conversion ( #801 )
8 years ago
Christopher F
e991715bac
Added CommandService.CommandExecuted ( #747 )
8 years ago
Christopher F
0fdb2d2c3b
Bump version to 2.0.0-alpha
8 years ago
Izumemori
9c81ab9fe4
changed NameAttribute to work for parameter ( #765 )
8 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.
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
3c1e76615e
Preemptive Ratelimits should be logged under Verbose
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
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
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
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
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
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
8 years ago
Christopher F
95b78df9f0
URL-Encode reasons on Kick/Ban ( #787 )
This resolves #784
8 years ago
RogueException
dfcb4b39fb
Allow duplicate RequireBotPermissionAttribute
8 years ago
AntiTcb
b078cf0610
Add ObsoleteAttribute
8 years ago
AntiTcb
fed73efdc2
Add back DiscordShardedClient.UserPresenceUpdated
8 years ago
AntiTcb
5848ae0d08
I'm good at this, I swear. >_>
8 years ago
AntiTcb
cf6b512847
Begone whitespace.
8 years ago
AntiTcb
0f6ceb4843
Hook LatencyUpdated for ShardedClient.
8 years ago
AntiTcb
5a0a83f8fc
Add ShardLatencyUpdated event.
Style cleanup.
8 years ago
AntiTcb
75a0206318
Add BaseSocketClient#DownloadUsersAsync().
Style cleanups.
8 years ago
AntiTcb
806eac8e06
Style consistency. Remove extraneous overloads.
Remove extraneous overloads.
8 years ago
AntiTcb
114c4444f0
Add ShardReady event.
8 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
AntiTcb
355304e4af
Add BaseDiscordClient. Add various missing RequestOptions args.
DiscordSocketClient and DiscordShardedClient's shared members now exist in this abstract class.
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