RogueException
d623b18dff
Added AddParameter<T>. Fixed AddParameter ignoring default typereaders.
9 years ago
RogueException
2dd62ba5e7
Set DefaultRunMode to Sync
9 years ago
RogueException
b01200f929
Cleaned up primitive type readers. Fixed TimeSpan reader.
9 years ago
RogueException
8f87b2cc71
Added support for .NET Standard 1.1 and 1.2
9 years ago
Christopher F
7fb032c9d2
Make changes per discussion
Instead of using fields, we will now use properties (that must have a setter).
9 years ago
Christopher F
b33df6ad77
Add InjectAttribute, inject into fields flagged with it from DepMap
This allows users to flag a field with InjectAttribute, and when the module is created at runtime, this field will be filled in with the object from the dependency map.
9 years ago
Christopher F
0f334d24a0
Add Transients/Factories to Dependency Injection
9 years ago
Finite Reality
9aa924f75c
Remove blank line
9 years ago
FiniteReality
b4f8b0601f
Fix #408
A.K.A. "FiniteReality is a twat"
9 years ago
FiniteReality
70d30efb94
Implement configurable command node separators
This fixes #304 over foxbot's PR for the same issue.
9 years ago
RogueException
803b65212e
Merge pull request #364 from FiniteReality/feature/parameter-tweaks
Parameter preconditions and typereader overriding
9 years ago
RogueException
f772956558
Merge branch 'issue/384' of git://github.com/james7132/Discord.Net into james7132-issue/384
9 years ago
Aux
d4d8e721db
Resolves #390
Fix case insensitive commands forcing parameters to return lowercase
9 years ago
FiniteReality
704b2b75f4
Fix changes after review
9 years ago
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.
9 years ago
FiniteReality
d2d7b4dce7
Make `_typeReaderTypeInfo` static
Seems I missed this originally, whoops.
9 years ago
FiniteReality
156483bf71
Rename `overridenType` to `overridenTypeReader`
The previous name was causing some confusion
9 years ago
FiniteReality
f11f416024
Add IDependencyMap to parameter preconditions
9 years ago
FiniteReality
b7a5ee6542
Parameter preconditions and typereader overriding
9 years ago
james7132
2c768c413a
Revert CommandService.Modules change
9 years ago
james7132
790ca10d17
Fix accidental line join
9 years ago
james7132
4896524d1a
Limit CommandService.Modules to top level modules
9 years ago
james7132
6865318071
Fix IsSubmodule property's correctness
9 years ago
james7132
0771fcce63
Add Parent property to ModuleInfo
9 years ago
james7132
3e35666186
Add TimeSpan TypeReader
9 years ago
RogueException
08ae9e4e86
Fixed logic in precondition attribute docstrings
9 years ago
RogueException
2a33bb0c12
Escaped amp in XML example.
9 years ago
Christopher F
d72122eef9
Resolve conflicts.
9 years ago
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).
9 years ago
RogueException
a0c9ba92db
Merge branch 'dev' into feature/more-preconditions
9 years ago
Christopher F
55f6efd080
Merge branch 'issue/365'
Conflicts:
src/Discord.Net.Commands/CommandService.cs
9 years ago
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).
9 years ago
Christopher F
1ed4f703bf
Cache the current application on DiscordSocketClient
9 years ago
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)
9 years ago
Christopher F
defc8f1c4e
Add docstrings to preconditions.
9 years ago
Christopher F
ea148db08b
Add RequireBotPermission, rename RequirePermission
This is a breaking change.
Adds a precondition that requires the bot has a specified permission (Resolves #211 ).
Renames RequirePermission to RequireUserPermission.
9 years ago
Christopher F
fdecfe6bd4
Add RequireOwner Precondition
This precondition will require that the invoker of the command is the owner of the bot.
9 years ago
FiniteReality
5cdda592c1
Add requested changes
9 years ago
FiniteReality
bc76e38ce5
Fix additional issue with aliases building incorrectly
9 years ago
FiniteReality
05fb81c617
Fix a bunch of issues with aliases
9 years ago
FiniteReality
fd5e237b41
Fix commands from being created with invalid aliases
9 years ago
Davipb
b0286975cd
Fix parsing of multiple quoted parameters
This should Fix #262
9 years ago
RogueException
593ba46f1c
Cleaned up command builders and async func names
9 years ago
RogueException
a73e411edb
Merge branch 'feature/command-builders' of git://github.com/FiniteReality/Discord.Net into FiniteReality-feature/command-builders
9 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.
9 years ago
FiniteReality
de645548a9
Complete command builders implementation
In theory this should just work, more testing is needed though
9 years ago
RogueException
42cbd67ee0
Removed prerelease tag from project.json
9 years ago
RogueException
cf42bd1854
Restored project.json and old build script
9 years ago
RogueException
9b79019b54
Merge pull request #355 from AntiTcb/fix/enumTypeReader
Values in ImmutableDictionaries were strings rather than enumType
9 years ago
RogueException
0f674d2404
Updated dependencies to .NET Core 1.1
9 years ago