Commit Graph

2047 Commits

Author SHA1 Message Date
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
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
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
RogueException
4c2221dacb More audio cleanup, finished receive streams 2017-02-26 13:43:11 -04:00
RogueException
8e0c65498b Cleaned up audio code 2017-02-26 10:57:28 -04:00
Christopher F
4a18b321ea Change the minimum allowed message to 13d23h59m
Connection/API lag could cause messages right on the edge of 14 weeks to fail on Discord's end when they pass our checks.
2017-02-25 16:31:46 -05:00
Christopher F
2db60749ca Add IsUnique parameter to CreateChannelInvite
Resolves #469
2017-02-25 16:17:58 -05:00
RogueException
06dcac6a9f Fixed audio and a few ConnectionManager issues 2017-02-25 16:07:22 -04:00
RogueException
3190d7e26d Moved (re)connection handling to ConnectionManager 2017-02-25 16:07:22 -04:00
RogueException
8630185ac9 Started Discord.Net.Relay 2017-02-25 16:07:22 -04:00
RogueException
d321ad3e5c Moved Frame models, added default providers 2017-02-25 16:07:22 -04:00
Christopher F
607f478b9a Check that messages older than two weeks are not passed to bulk delete
This resolves #477
2017-02-23 17:39:10 -05:00
Christopher F
c486f0ee50 Don't force avatar formats 2017-02-23 16:11:34 -05:00
Christopher F
a5adc8a129 Cleanup from rebase 2017-02-23 16:04:13 -05:00
Christopher F
6116c1bcef Replace IUser.AvatarUrl with IUser#GetAvatarUrl(size)
This is to support the new user image endpoint, which provides a parameter for image resizing.
2017-02-23 15:59:17 -05:00
Christopher F
3c9704c822 Merge pull request #520 from james7132/property-injection
Conflicts:
	docs/guides/samples/dependency_module.cs
	src/Discord.Net.Commands/Utilities/ReflectionUtils.cs
2017-02-23 15:51:24 -05:00
Christopher F
7476c4ca38 Cleanup property injection 2017-02-23 15:47:46 -05:00
Christopher F
6fd834f326 Merge pull request #417 from RogueException/feature/better-di
Enhance Dependency Injection
2017-02-21 16:56:25 -05:00
Christopher F
c8f382ce2a Merge pull request #526 from RogueException/feature/user-roles
Add Roles property to SocketGuildUser
2017-02-21 16:22:45 -05:00
Christopher F
bb9f144eae Remove implicit SocketGuildUser.RoleIds; refactor Roles to ReadOnly 2017-02-21 16:19:33 -05:00
Sindre G. Langhus
ab60f63511 Changes HasValue in Cachable to constructor argument 2017-02-21 22:11:48 +09:00
RogueException
1070feafa8 Merge pull request #509 from aequasi/patch-2
Typo
2017-02-20 18:32:02 -04:00
RogueException
85e0dee0f0 Merge pull request #523 from Emzi0767/dev
Fixed couple non-default arguments in REST messages
2017-02-20 18:16:35 -04:00
RogueException
966be796b2 Merge pull request #504 from Joe4evr/TypeReader_NRE_fix
Fix ParameterInfo.Type sometimes being null
2017-02-20 18:14:21 -04:00
Christopher F
e601cea255 Add Roles property to SocketGuildUser
there's a few different ways to select a user's roles from their role IDs, and this one seems to be the most efficient.

doesn't seem like there's any reason this shouldn't be included.
2017-02-15 15:59:23 -05:00
Emzi0767
9c3f858b42 Fixed couple non-default arguments in REST messages 2017-02-13 22:22:06 +01:00
Christopher F
f3aa546407 Throw an InvalidOp if a user tries to set the DefaultRunMode to Default
never overestimate the end user
2017-02-12 19:06:36 -05:00
RogueException
70e8cea6e2 Fixed order for permission resolving 2017-02-11 23:15:48 -04:00
james7132
73f00eb0d7 Ensure injected properties have public setters 2017-02-11 20:12:12 +00:00
Christopher F
6352cbebef Add TryAdd to DependencyMaps 2017-02-11 13:53:14 -05:00
Christopher F
40ede62e4d Remove Auto-Injection
this should be handled by #520
2017-02-11 13:38:26 -05:00
RogueException
e0a0d2100d Reduced missed heartbeat aggressiveness 2017-02-11 01:49:28 -04:00
james7132
145ae1518b Fix properties not being set properly on injection 2017-02-11 05:48:45 +00:00
james7132
f1df412341 Change whitelist injection into blacklist injection 2017-02-10 22:02:18 +00:00
james7132
f0b4c24e82 Add InjectAttribute for annotating injectable properties 2017-02-10 21:52:33 +00:00
james7132
a551064eaf Add IDependencyMap injection for public properties 2017-02-10 15:44:24 +00:00
RogueException
8be4cb72e3 SocketSystemMessage Internal -> Public 2017-02-07 21:15:27 -04:00
RogueException
ea3a8f6a01 Added EmbedBuilder.AddField(EmbedFieldBuilder) 2017-02-07 21:13:26 -04:00
RogueException
0cf5493c61 Fixed crash, added DM/Group channel helpers 2017-02-07 21:10:30 -04:00
RogueException
d9fd0c34e4 Fixed bugs with creating invites 2017-02-07 19:48:09 -04:00
Aaron Scherer
858af5e8bb Typo 2017-02-04 05:48:48 -08:00
Sindre Langhus
d8682a82b2 Change all signatures in the SocketClients to interfaces. 2017-02-03 15:04:54 +01:00
Sindre G. Langhus
25547407c8 Now this should be ready to, I am the worst at git. 2017-02-02 14:41:27 +01:00
Sindre G. Langhus
4b13e3fb00 Changed MessageUpdated to use Cacheable as well, after discussion with Volt. 2017-02-02 13:52:38 +01:00
Sindre G. Langhus
2d67cf36ae Changed Id from a ulong to generic TId, as per discussion. 2017-02-02 13:52:38 +01:00
Sindre G. Langhus
2a1314da25 Cleanup. 2017-02-02 13:52:35 +01:00