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
ObsidianMinor
ddca1bc6a4
Migrated projects to Visual Studio 2017
9 years ago
AntiTcb
ef0337752e
Proper fix this time, fully tested on names and values.
9 years ago
FiniteReality
6d46347ebc
Finish implementation of command builders
9 years ago
AntiTcb
59d393b357
Values in ImmutableDictionaries were strings rather than enumType
9 years ago
FiniteReality
ab95ced41d
Use default TypeReader if not overriden
9 years ago
FiniteReality
d25fbf78c0
Use lambda-style subbuilders
9 years ago
FiniteReality
af433c82cc
Complete builders, start work on using them
9 years ago
RogueException
4180856e39
Merge branch 'fix/enumTypeReader' of git://github.com/AntiTcb/Discord.Net into AntiTcb-fix/enumTypeReader
9 years ago
RogueException
c2722cf7c4
SendMessage should accept EmbedBuilder directly
9 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.
9 years ago
Christopher F
bad7d827c3
Modify SendMessage to include an embeds field
9 years ago
Alex
d8440b764a
Changes requested from review
9 years ago
AntiTcb
1d20029c7b
Enumerate over Enum.GetNames to ensure equal value names are not excluded.
9 years ago
Sindre Langhus
0b43545ae0
Update ReplyAsync Task to return the sent message.
9 years ago
RogueException
b8102a6767
Default DependencyMap to an empty map when not supplied
9 years ago
RogueException
3ca0067f1b
Merge pull request #313 from FiniteReality/scoped-di
Move DI stuff around to support scoped DI
9 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
9 years ago
FiniteReality
a7cefbcf9f
Move DI stuff around to support scoped DI
9 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.
9 years ago
RogueException
8c8ac47887
Merge pull request #308 from Joe4evr/AutoLoadFix
Exclude abstract types from being loaded as modules.
9 years ago
RogueException
890318ecfc
Added a simpler CommandContext constructor
9 years ago
RogueException
8ebc437674
Exposed IDependencyMap in CommandService.Execute
9 years ago
Joe4evr
bc45c0b6a4
Exclude abstract types from being loaded as modules.
9 years ago
RogueException
735c869f3d
Moved Client from ModuleBase to CommandContext.
9 years ago