Christopher F
f9c5e229d0
Add CommandServiceConfig, DefaultRunMode
This adds an (optional) CommandServiceConfig, as well as a DefaultRunMode for commands.
This resolves #368 (for commands where a RunMode is not explicitly specified, a custom default value should be used)
8 years ago
Davipb
b0286975cd
Fix parsing of multiple quoted parameters
This should Fix #262
8 years ago
RogueException
593ba46f1c
Cleaned up command builders and async func names
8 years ago
RogueException
a73e411edb
Merge branch 'feature/command-builders' of git://github.com/FiniteReality/Discord.Net into FiniteReality-feature/command-builders
8 years ago
FiniteReality
196cce05af
Clean up attribute checking and extraneous casts
This probably isn't all of them. This is what I get for copy+pasting code.
8 years ago
FiniteReality
de645548a9
Complete command builders implementation
In theory this should just work, more testing is needed though
8 years ago
RogueException
42cbd67ee0
Removed prerelease tag from project.json
8 years ago
RogueException
cf42bd1854
Restored project.json and old build script
8 years ago
RogueException
9b79019b54
Merge pull request #355 from AntiTcb/fix/enumTypeReader
Values in ImmutableDictionaries were strings rather than enumType
8 years ago
RogueException
0f674d2404
Updated dependencies to .NET Core 1.1
8 years ago
ObsidianMinor
ddca1bc6a4
Migrated projects to Visual Studio 2017
8 years ago
AntiTcb
ef0337752e
Proper fix this time, fully tested on names and values.
8 years ago
FiniteReality
6d46347ebc
Finish implementation of command builders
8 years ago
AntiTcb
59d393b357
Values in ImmutableDictionaries were strings rather than enumType
8 years ago
FiniteReality
ab95ced41d
Use default TypeReader if not overriden
8 years ago
FiniteReality
d25fbf78c0
Use lambda-style subbuilders
8 years ago
FiniteReality
af433c82cc
Complete builders, start work on using them
8 years ago
RogueException
4180856e39
Merge branch 'fix/enumTypeReader' of git://github.com/AntiTcb/Discord.Net into AntiTcb-fix/enumTypeReader
8 years ago
RogueException
c2722cf7c4
SendMessage should accept EmbedBuilder directly
8 years ago
FiniteReality
f95154af23
Start work on command builders
Right now commands require a module before they can be created;
I'm looking to remove this in the future.
8 years ago
Christopher F
bad7d827c3
Modify SendMessage to include an embeds field
8 years ago
Alex
d8440b764a
Changes requested from review
8 years ago
AntiTcb
1d20029c7b
Enumerate over Enum.GetNames to ensure equal value names are not excluded.
8 years ago
Sindre Langhus
0b43545ae0
Update ReplyAsync Task to return the sent message.
8 years ago
RogueException
b8102a6767
Default DependencyMap to an empty map when not supplied
8 years ago
RogueException
3ca0067f1b
Merge pull request #313 from FiniteReality/scoped-di
Move DI stuff around to support scoped DI
8 years ago
Christopher F
11f4dc0d10
Add a missing null-conditional in CommandContext#ctor
Prevents an NRE when creating a CommandContext from a message in an IDMChannel
8 years ago
FiniteReality
a7cefbcf9f
Move DI stuff around to support scoped DI
8 years ago
james7132
3841eb616c
Fix #311
TypeInfo.BaseType will likely return the same Type if all modules derive from
ModuleBase or some common subclass of it. Making it appear as if only one module
is registered.
Changed to TypeInfo.AsType for expected behavior.
8 years ago
RogueException
8c8ac47887
Merge pull request #308 from Joe4evr/AutoLoadFix
Exclude abstract types from being loaded as modules.
8 years ago
RogueException
890318ecfc
Added a simpler CommandContext constructor
8 years ago
RogueException
8ebc437674
Exposed IDependencyMap in CommandService.Execute
8 years ago
Joe4evr
bc45c0b6a4
Exclude abstract types from being loaded as modules.
8 years ago
RogueException
735c869f3d
Moved Client from ModuleBase to CommandContext.
8 years ago
RogueException
88c5dd38bf
Added CommandContext.IsPrivate
8 years ago
RogueException
4643e44e48
Updated package info
8 years ago
RogueException
addb81f288
Fixed Commands version
8 years ago
RogueException
3fc7b3b206
RPC's Authorize should not try to authenticate
8 years ago
RogueException
d480b2f25b
Renamed run modes
8 years ago
RogueException
c7ac85455f
Added a configurable run mode for commands
8 years ago
RogueException
635819b89f
Reduced command module lifetime to a single command execution. Removed ModuleAttribute.
8 years ago
RogueException
8ab675e775
Restrict typereaders to using the cache
8 years ago
RogueException
5c33e28757
Added missing ConfigureAwaits
8 years ago
RogueException
090a1bc736
Added IMessage.Tags
8 years ago
RogueException
98475302af
Added bool/char typereaders
8 years ago
RogueException
3c3e790edd
Replaced several arrays with immutables
8 years ago
RogueException
4c4ddb1bc3
Added AssemblyInfo to Commands
8 years ago
RogueException
fc62cd52d1
Fixed command parameter check
8 years ago
RogueException
cba90ebec3
Exposed public CommandContext constructor
8 years ago
RogueException
708f9fe514
Added CommandContext, fixed commands compile errors
8 years ago