Commit Graph

27 Commits

Author SHA1 Message Date
Finite Reality
032aba9129 Update commands with C#7 features (#689)
* C#7 features in commands, CommandInfo in ModuleBase

* Update TypeReaders with C#7 features and IServiceProvider

* Add best-choice command selection to CommandService

* Normalize type reader scores correctly

* Fix logic error and rebase onto dev

* Change GetMethod for SetMethod in ReflectionUtils

Should be checking against setters, not getters

* Ensure args/params scores do not overwhelm Priority

* Remove possibility of NaNs
2017-06-29 17:43:55 -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
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
RogueException
2c075e186a Added support for custom ModuleBase command contexts. Added SocketCommandContext/RpcCommandContext. 2016-12-23 16:57:30 -04:00
Confruggy
d27970113e Update UserTypeReader.cs 2016-12-19 23:20:42 +01:00
RogueException
b01200f929 Cleaned up primitive type readers. Fixed TimeSpan reader. 2016-12-16 06:33:21 -04:00
AntiTcb
ef0337752e Proper fix this time, fully tested on names and values. 2016-11-16 23:16:37 -05:00
AntiTcb
59d393b357 Values in ImmutableDictionaries were strings rather than enumType 2016-11-16 11:43:23 -05:00
Alex
d8440b764a Changes requested from review 2016-11-12 00:07:25 -05:00
AntiTcb
1d20029c7b Enumerate over Enum.GetNames to ensure equal value names are not excluded. 2016-11-02 03:01:42 -04:00
RogueException
8ab675e775 Restrict typereaders to using the cache 2016-10-08 18:41:55 -03:00
RogueException
3c3e790edd Replaced several arrays with immutables 2016-10-05 23:59:55 -03:00
RogueException
708f9fe514 Added CommandContext, fixed commands compile errors 2016-10-04 09:54:44 -03:00
RogueException
23a0316252 Split IMessage into IUserMessage and ISystemMessage 2016-08-27 19:07:22 -03:00
RogueException
f2c38567b6 Fixed ChannelTypeReader by mention 2016-08-27 08:21:16 -03:00
Master Kwoth
2cd97bd594 Fixed IRole typereader ref #229 2016-08-27 03:27:10 +02:00
RogueException
324664917d Added new parameter scoring, support multiple matches 2016-08-21 11:03:50 -03:00
RogueException
4a06753990 Cleaned up TypeReaders 2016-07-26 19:01:51 -03:00
Khionu Terabite
ae2ef74b14 Variable rename
Changed name to be more context appropriate
2016-07-21 14:38:30 -04:00
RogueException
b407c71567 Added support for non-int enums 2016-07-20 23:16:06 -03:00
Khionu Terabite
523b862525 Added Dynamic Enum TypeParsing, to support all enums 2016-07-20 20:54:29 -04:00
RogueException
5c5a9c8d6f Fixed User TypeReader not resolving in DMs 2016-06-29 05:27:18 -03:00
RogueException
f59b6b9004 Implemented command type readers, parser and service. 2016-06-26 03:35:40 -03:00