Commit Graph

2142 Commits

Author SHA1 Message Date
RogueException
20f7ba431f Cleaned up and fixed several reorder issues. 2017-03-20 23:48:41 -03:00
RogueException
8d435e994b Filter null roles in SocketGuildUser 2017-03-20 23:46:11 -03:00
RogueException
0c8d643519 Minor doc/exception edits 2017-03-18 23:22:39 -03:00
RogueException
3fb21e06c2 Fixed RunMode.Sync running Async. Added ThrowOnError option. 2017-03-18 21:38:28 -03:00
Christopher F
83bd16f329 Don't attempt to convert Embed entities to models if the entity is null
Allows null embeds to be passed into ModifyAsync
2017-03-18 20:36:06 -04:00
RogueException
ba07484fe9 Removed Mixed RunMode 2017-03-18 12:23:51 -03:00
RogueException
a2b12520b2 Added CommandService logging 2017-03-18 12:14:14 -03:00
RogueException
bc469cbb46 Process everyone permission overwrites before role 2017-03-18 11:33:38 -03:00
RogueException
5a6d6ee076 Fixed notempty precondition error message 2017-03-18 10:37:57 -03:00
RogueException
21959fe43c Fixed several permission issues 2017-03-18 10:36:37 -03:00
Finite Reality
2160e5dac8 Improve parameter precondition type safety (#532)
* Improve parameter precondition type safety

Also removes some terrible code which was left over when I first
implemented parameter preconditions. I don't know why that was there.

With this commit, parameter preconditions should be much safer as they
use generic methods instead of janky casting of objects.

* Remove generic CheckPreconditions method
2017-03-18 09:55:53 -03:00
RogueException
96a377a258 If discord error code is 0, fall back to http code 2017-03-18 09:32:04 -03:00
Confruggy
fbd34d6719 Update MessageHelper.cs (#508) 2017-03-18 08:57:56 -03:00
Finite Reality
3ddb01a5a2 Fix order of iteration in ExecuteAsync (#534) 2017-03-18 08:55:56 -03:00
Mateusz Brawański
efbd3cb681 GuildUserExtensions removed in favour of atomic role add/remove endpoints (#540)
* Removed GuildUserExtensions and moved the methods to IGuildUser and implementations

* Made changes per fox's suggestion: Change->Modify. New Modify overload.

* Oops

* Per Volt: reimplemented new endpoints

* Fixing broken docstrings

* I forgot that docstrings are XML

* Implemented atomic add/remove role endpoints

* Removed  so people aren't irked

* Added single-item role add/remove methods
2017-03-18 08:54:49 -03:00
RogueException
11ba30c6fa Cleaned up DepMap type checks 2017-03-18 08:48:18 -03:00
RogueException
334ceacdbf Merge pull request #546 from khionu/dev
Fix detection of IDependencyMap impl
2017-03-18 08:42:57 -03:00
RogueException
84b3d24175 Merge pull request #549 from Mushroom/reactions
Added support for reaction 'me' field
2017-03-18 08:40:55 -03:00
RogueException
683541ba24 Added RequireOwner support for User tokens 2017-03-18 08:38:24 -03:00
RogueException
458deb4332 Merge pull request #560 from Flamanis/patch-1
UserTypeReader ArgumentNullException in DM
2017-03-18 08:31:28 -03:00
RogueException
711a4e90a4 Renamed AvatarFormat -> ImageFormat. Cleaned up. 2017-03-18 08:30:33 -03:00
RogueException
6dd2e0a708 Merge pull request #573 from james7132/auto-avatar
Automatic animated avatar detection
2017-03-18 08:24:31 -03:00
RogueException
cc11d667e3 Merge pull request #574 from Sentinent/get-userreactions-fix
Fixed GetReactionsUsersAsync returning an empty enumerable
2017-03-18 08:22:48 -03:00
james7132
bd0a329912 Simplify format logic 2017-03-16 16:06:40 +00:00
RogueException
587ec65e79 Added Discord.Net.Webhook 2017-03-16 05:35:01 -03:00
RogueException
2b16c8620d Avoid catching log errors 2017-03-15 23:40:25 -03:00
RogueException
254c83ecff Started adding audio receive 2017-03-15 23:40:25 -03:00
RogueException
1d5b7a2b01 Removed Unknown status 2017-03-15 23:40:25 -03:00
RogueException
3bd920ce66 Merged UserPresenceUpdated into UserUpdated 2017-03-15 23:40:25 -03:00
Sentinent
58d9fb1ed6 Fixed GetReactionsUsersAsync returning an empty enumerable 2017-03-14 21:46:14 -07:00
james7132
46b6b8c03b Review fixes 2017-03-15 00:48:37 +00:00
james7132
bfc4fd686e Automatic animated avatar detection 2017-03-15 00:33:07 +00:00
RogueException
92028f59e9 Removed SocketClient's explicit ConnectionState 2017-03-13 22:25:38 -03:00
RogueException
900b9b082e Removed persistant guild list for user downloads 2017-03-13 22:17:35 -03:00
RogueException
cab41851ba Prevent duplicate GuildUnavailables 2017-03-13 22:14:30 -03:00
RogueException
7e7df27024 Ready event waits until guilds are downloaded 2017-03-13 22:14:30 -03:00
Christopher F
bb78c50b6f Fix ConnectionState on DiscordSocketClient
This should resolve a plethora of relates issues, including user downloading not working (#542), possibly #531
2017-03-09 19:25:43 -05:00
Flamanis
94ea80b45e Modified User#Discrim check to properly check guild 2017-03-08 00:51:10 -06:00
Flamanis
dc2230de86 guildUsers instantiated to empty collection, removed added nullchecks
A null conditional operator was required at line 70 to avoid a nullref.
2017-03-08 00:48:18 -06:00
Flamanis
c643ceaa47 Add space after if and before ( 2017-03-07 18:41:31 -06:00
Flamanis
b5f80a7a6c Should fix Linq ArgumentNullException 2017-03-07 18:29:53 -06:00
Mushroom
78076bd9df Added support for reaction 'me' field 2017-03-03 01:51:46 +00:00
RogueException
1b0e47be42 Fixed SocketRole.CompareTo 2017-03-02 06:55:09 -04:00
RogueException
8c75e0d581 Fixed a couple audio bugs 2017-03-02 06:12:14 -04:00
RogueException
1cd67c2467 Allow EmbedFieldBuilder to take object values 2017-03-02 06:00:13 -04:00
Khionu Sybiern
ba406bb646 Split typechecks into their own conditions 2017-03-02 01:39:45 -05:00
Christopher F
5e1d84d918 Merge pull request #395 from LassieME/issue/359
Conflicts:
	src/Discord.Net.WebSocket/DiscordSocketClient.cs
2017-03-01 17:34:39 -05:00
RogueException
34361fa64a Merge pull request #537 from RogueException/issue/477
Check that messages older than two weeks are not passed to bulk delete
2017-03-01 18:19:43 -04:00
Christopher F
66b7e0e7f0 Rename precondition to 'YoungerThanTwoWeeks' 2017-03-01 17:16:06 -05:00
Khionu Sybiern
4274900d43 Implimented discussed changes 2017-03-01 14:19:28 -05:00