Commit Graph

408 Commits

Author SHA1 Message Date
RogueException
683541ba24 Added RequireOwner support for User tokens 2017-03-18 08:38:24 -03: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
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
RogueException
1070feafa8 Merge pull request #509 from aequasi/patch-2
Typo
2017-02-20 18:32:02 -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
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
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
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
Aaron Scherer
858af5e8bb Typo 2017-02-04 05:48:48 -08:00
Joe4evr
f80687ef0e Fix ParameterInfo.Type sometimes being null 2017-02-01 04:06:24 +01:00
Joe4evr
ea298875af Actually mark the methods virtual #derp 2017-01-30 03:17:57 +01:00
Joe4evr
c2599977a5 Add BeforeExecute/AfterExecute methods to ModuleBase 2017-01-30 03:14:12 +01:00
RogueException
55e9c7da5c Merge pull request #482 from FiniteReality/issue/462
Ensure aliases are built in the correct order
2017-01-26 10:57:46 -04:00
RogueException
deb755dd3d Merge pull request #488 from FiniteReality/issue/487
Replace ConcurrentBag<T> with HashSet<T>
2017-01-26 10:52:12 -04:00
RogueException
34139c9b59 Converted Discord.Net to a metapackage 2017-01-26 10:43:32 -04:00
RogueException
eb2a946dd6 Updated to 1.0.0-rc3 tooling 2017-01-25 22:27:24 -04:00
RogueException
3bc2520095 Abandon VersionSuffix 2017-01-25 20:39:04 -04:00
RogueException
24663605f6 Fixed CI detecting all packages as dev 2017-01-25 20:14:19 -04:00
RogueException
b0db37cad6 Versions are hard 2017-01-25 18:00:00 -04:00
RogueException
3046b62c94 Cleaned up csproj/sln/scripts 2017-01-25 12:41:38 -04:00
RogueException
7c5fe79333 Updated build script 2017-01-24 15:40:41 -04:00
RogueException
fe35400498 Cleanup 2017-01-24 11:42:28 -04:00
RogueException
00bb3c9d70 Removed project.jsons 2017-01-24 11:35:36 -04:00
FiniteReality
0715cb6623 Actually use HashSet<T> to initialize _moduleDefs 2017-01-22 03:08:52 +00:00
FiniteReality
a65ba095af Replace ConcurrentBag<T> with HashSet<T>
Fixes #487
2017-01-17 20:08:18 +00:00
FiniteReality
c2b50b56d8 Ensure aliases are built in the correct order
Fixes #462
2017-01-15 21:19:08 +00:00
RogueException
d06b7856f6 Fixed several package errors 2017-01-02 00:05:45 -04:00
RogueException
e2934abe29 Made API models internal. Removed Discord.Net.API. 2017-01-01 23:28:42 -04:00
RogueException
c9a12cde10 Added default alias when GroupAttribute isn't provided 2016-12-29 20:57:07 -04:00
RogueException
e3da623f39 Cleaned up alias generation 2016-12-28 19:22:57 -04:00
RogueException
032c9e007c Do not add null aliases 2016-12-28 19:22:53 -04:00
RogueException
2c075e186a Added support for custom ModuleBase command contexts. Added SocketCommandContext/RpcCommandContext. 2016-12-23 16:57:30 -04:00
RogueException
1965c0539a Added support for concrete Rest/Socket/RPC classes in command params 2016-12-23 16:57:29 -04:00
RogueException
8326d01f62 Isolated API definitions to their own library 2016-12-23 16:57:29 -04:00
Christopher F
f64de4ab47 Merge pull request #431 from AntiTcb/issues/427
Issues/427 + AliasAttribute targets classes
2016-12-20 02:09:28 -05:00
AntiTcb
5118ed876b Can target classes now. 2016-12-19 17:54:06 -05:00
AntiTcb
bc985ada92 Modules without aliases now default to an empty string alias 2016-12-19 17:53:54 -05:00
Confruggy
d27970113e Update UserTypeReader.cs 2016-12-19 23:20:42 +01:00
RogueException
ae3ada84c4 Renamed ModuleBuilder.AddAlias -> AddAliases 2016-12-18 18:21:24 -04:00
RogueException
c1a9bdc142 Cleaned up alias permutations, fixed empty aliases 2016-12-18 18:14:39 -04:00