Commit Graph

2619 Commits

Author SHA1 Message Date
AntiTcb
aeef5d0893 Update DM channel on entity updates. 2017-05-16 20:03:17 -04:00
AntiTcb
6fed78025c Create DM channel if one does not exist. 2017-05-16 20:02:32 -04:00
Christopher F
588df7b0c7 Merge pull request #653 from Joe4evr/quickstart-rc3
Update the quickstart structure example to rc3.
2017-05-14 18:46:18 -04:00
Joe4evr
af5fdec486 Update the quickstart structure to rc3. 2017-05-13 03:15:55 +02:00
RogueException
c01769ef4a Updated version to 1.0.0-rc3 2017-05-11 00:03:38 -03:00
RogueException
4c7fad78e1 Build promises when guild is unavailable 2017-05-10 19:28:25 -03:00
RogueException
feebcb4838 Update System.Net.Http to 4.3.2 2017-05-09 20:55:54 -03:00
RogueException
285a0e5817 Updated deps, cleaned csprojs 2017-05-09 20:51:00 -03:00
FiniteReality
1e888cde24 Fix CheckPreconditions giving empty service provider
Parameter preconditions were always getting the empty service provider,
even when a custom one was provided in ExecuteAsync, which means that
preconditions which use services cannot work properly.
2017-05-08 22:15:47 +01:00
Christopher F
32feb0a9cf Merge pull request #646 from FiniteReality/dev
Remove CommandService.BuildServiceCollection
2017-05-06 13:29:49 -04:00
FiniteReality
00895b1227 Remove CommandService.BuildServiceCollection
💥
2017-05-06 18:25:44 +01:00
Finite Reality
112a434424 Allow for case-insensitive HasStringPrefix (#644)
This was 👍'd in the dev chat, I forgot to make a PR for it (whoops!)
2017-05-06 02:39:46 -03:00
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
2017-05-04 13:16:33 -03:00
RogueException
870dc50a68 Fixed RequireNsfwAttribute definition 2017-05-04 13:15:51 -03:00
RogueException
4a128b326b Increment globaluser refs on private channel creation 2017-05-04 13:14:35 -03:00
RogueException
bd5ec0a29a Increment GlobalUser reference count on GuildUser creation 2017-05-04 13:09:55 -03:00
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
2017-05-04 12:53:40 -03:00
Christopher F
576a52cdc6 Restructure and replace emojis with a new emote system (#619) 2017-05-04 12:52:48 -03:00
RogueException
ba1982a3f9 Replaced DependencyMap with ServiceCollection and IServiceProvider (#625) 2017-05-04 12:52:26 -03:00
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
2017-05-04 12:49:32 -03:00
RogueException
05f8f41567 Fixed PR check in appveyor.yml 2017-05-04 12:45:24 -03:00
RogueException
c40857bb1e Added personal myget 2017-05-02 02:05:57 -03:00
RogueException
4d7a97c37a Push artifacts from build script 2017-05-02 01:49:57 -03:00
RogueException
5ad2d7361d Added appveyor.yml, README edits (#639) 2017-05-02 01:03:04 -03:00
Sindre Langhus
90ac9027cf Replace Where+FirstOrDefault with FirstOrDefault in SocketClient (#636)
* Replace Where.FirstOrDefault with FirstOrDefault

* Replace Where+FirstOrDefault in ClientHelper
2017-04-30 21:29:12 -03:00
Bond-009
cb4f6e37f6 Overloaded AddModuleAsync with Type (#581)
* Overloaded AddModuleAsync with Type

* Overloaded RemoveModuleAsync with Type

* Use expression-bodied method for consistency
2017-04-29 04:42:47 -03:00
Confruggy
3365bbb043 Fixes ChannelTypeReader (#630) 2017-04-28 11:49:59 -03:00
Confruggy
4ca273dd4a Fixes RoleTypeReader (#631) 2017-04-28 11:49:50 -03:00
RogueException
ba1a9aaa18 UnstableRestClient should timeout instead of ignore requests 2017-04-26 13:09:08 -03:00
RogueException
bd85bbf30a Moved UserAgent to DiscordConfig 2017-04-26 13:06:34 -03:00
RogueException
c6ccddb4ce Added UnstableRestClientProvider 2017-04-26 13:06:13 -03:00
Bond-009
294ffa3729 Remove Discord.Net.Providers.UdpClient from pack.ps (#627)
This should fix the appveyor build.
2017-04-26 12:41:32 -03:00
RogueException
9954536fcc Removed UDP Provider 2017-04-26 12:19:50 -03:00
RogueException
649bf27557 Fixed nullref in UDPClient.SetCancelToken 2017-04-26 12:06:46 -03:00
RogueException
7b99c6003d Updated test dependencies 2017-04-26 10:35:56 -03:00
RogueException
a306d83283 Added net45 TFM 2017-04-26 10:25:08 -03:00
RogueException
f8b9acc4a1 Use implicit package references (#626) 2017-04-26 10:03:23 -03:00
RogueException
582b8f9637 Added ChannelName/GuildName to IInvite 2017-04-26 09:45:19 -03:00
RogueException
41d9788411 Isolated Analyzers and Relay projects 2017-04-25 09:25:19 -03:00
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
Christopher F
6000b15c4d C#7 TODOs 2017-04-23 15:13:31 -04:00
Christopher F
3dfa54e56e Merge pull request #615 from BenjaVR/dev
Added Jetbrains Rider installing guide
2017-04-23 14:21:50 -04:00
RogueException
1c6eebf875 Ensure command completes before cleaning up 2017-04-22 08:04:33 -03:00
RogueException
e762dddfbb Added SnowflakeUtils 2017-04-19 14:50:33 -03:00
RogueException
ff67c0d9c3 Removed unused canceltoken 2017-04-19 14:49:04 -03:00
Benjamin
c7ea29f1f0 Added Jetbrains Rider installing guide 2017-04-18 19:51:29 +02:00
Confruggy
5dba95fe59 Update ChannelHelper.cs (#606)
* Update ChannelHelper.cs

* typo
2017-04-15 19:04:07 -03:00
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.
2017-04-15 19:03:19 -03:00