Commit Graph

370 Commits

Author SHA1 Message Date
RogueException
fe35400498 Cleanup 2017-01-24 11:42:28 -04:00
RogueException
00bb3c9d70 Removed project.jsons 2017-01-24 11:35:36 -04: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
RogueException
5663e47db6 Added command separator char, improved passing search results to parser 2016-12-18 17:48:33 -04:00
RogueException
0d209b3fdb Added internal error for if a matching alias cannot be found 2016-12-18 14:18:33 -04:00
Christopher F
604d69fb7f Revert "Implement configurable command node separators" 2016-12-17 16:34:04 -05:00
RogueException
18de2ecac7 Merge pull request #412 from FiniteReality/issue/304-v2
Implement configurable command node separators
2016-12-16 15:38:27 -04:00
RogueException
d623b18dff Added AddParameter<T>. Fixed AddParameter ignoring default typereaders. 2016-12-16 10:00:39 -04:00
RogueException
2dd62ba5e7 Set DefaultRunMode to Sync 2016-12-16 09:15:32 -04:00
RogueException
b01200f929 Cleaned up primitive type readers. Fixed TimeSpan reader. 2016-12-16 06:33:21 -04:00
RogueException
8f87b2cc71 Added support for .NET Standard 1.1 and 1.2 2016-12-16 05:52:46 -04:00
Finite Reality
9aa924f75c Remove blank line 2016-12-11 18:07:30 +00:00
FiniteReality
b4f8b0601f Fix #408
A.K.A. "FiniteReality is a twat"
2016-12-10 19:05:33 +00:00
FiniteReality
70d30efb94 Implement configurable command node separators
This fixes #304 over foxbot's PR for the same issue.
2016-12-09 10:31:57 +00:00
RogueException
803b65212e Merge pull request #364 from FiniteReality/feature/parameter-tweaks
Parameter preconditions and typereader overriding
2016-12-07 21:39:55 -04:00
RogueException
f772956558 Merge branch 'issue/384' of git://github.com/james7132/Discord.Net into james7132-issue/384 2016-12-05 19:00:39 -04:00
Aux
d4d8e721db Resolves #390
Fix case insensitive commands forcing parameters to return lowercase
2016-12-04 17:29:39 -04:00
FiniteReality
704b2b75f4 Fix changes after review 2016-12-03 23:51:20 +00:00
FiniteReality
254e874c99 Fix OverrideTypeReader
This commit also adds a TypeReaders property to CommandService, so
it is possible to see all of the registered TypeReaders. This makes
it possible for users to implement their own parsing instead of
using the built-in parsing.
2016-12-03 23:51:20 +00:00
FiniteReality
d2d7b4dce7 Make _typeReaderTypeInfo static
Seems I missed this originally, whoops.
2016-12-03 23:49:05 +00:00
FiniteReality
156483bf71 Rename overridenType to overridenTypeReader
The previous name was causing some confusion
2016-12-03 23:49:05 +00:00
FiniteReality
f11f416024 Add IDependencyMap to parameter preconditions 2016-12-03 23:49:05 +00:00
FiniteReality
b7a5ee6542 Parameter preconditions and typereader overriding 2016-12-03 23:49:05 +00:00
james7132
2c768c413a Revert CommandService.Modules change 2016-11-30 19:52:58 +00:00
james7132
790ca10d17 Fix accidental line join 2016-11-28 20:44:29 -08:00
james7132
4896524d1a Limit CommandService.Modules to top level modules 2016-11-28 20:44:29 -08:00
james7132
6865318071 Fix IsSubmodule property's correctness 2016-11-28 20:40:44 -08:00
james7132
0771fcce63 Add Parent property to ModuleInfo 2016-11-28 20:40:44 -08:00
james7132
3e35666186 Add TimeSpan TypeReader 2016-11-27 01:57:12 -08:00
RogueException
08ae9e4e86 Fixed logic in precondition attribute docstrings 2016-11-27 01:13:29 -04:00
RogueException
2a33bb0c12 Escaped amp in XML example. 2016-11-27 01:07:19 -04:00
Christopher F
d72122eef9 Resolve conflicts. 2016-11-26 23:15:36 -05:00
Christopher F
ecc3d9c729 Add configuration option for case insensitive commands
Currently, commands are case-sensitive. This PR allows for commands to be case insensitive (which is now the default option).
2016-11-26 23:12:23 -05:00
RogueException
a0c9ba92db Merge branch 'dev' into feature/more-preconditions 2016-11-26 23:41:45 -04:00
Christopher F
55f6efd080 Merge branch 'issue/365'
Conflicts:
	src/Discord.Net.Commands/CommandService.cs
2016-11-26 22:26:47 -05:00
Christopher F
fb99b019a0 Fix issues with DefaultRunMode
For a command to use the DefaultRunMode, it must now have it's RunMode set to RunMode.Default (this is the default value on CommandAttribute now).
2016-11-26 22:04:02 -05:00
Christopher F
1ed4f703bf Cache the current application on DiscordSocketClient 2016-11-26 14:59:20 -05:00