Hsu Still
3a10820c84
Add XMLDocs
+ This commit also adds overwrites for CommandContexts; this allows for additional remarks for the class.
7 years ago
Hsu Still
81ad8abf59
Add XMLDocs
To many files.
7 years ago
Hsu Still
7c60b0293b
Add XMLDocs
* Fix comments to comply with third-person commenting style
+ Various attributes
+ Various Command-related objects
+ Many more
7 years ago
Joe4evr
2fd4f5670e
Remove support for TokenType.User ( #958 )
* Set usage of TokenType.User as an error rather than a warning.
* Remove commented sections and #pragma's
Additionally, changes use of ReadMessages to ViewChannel since that Obsolete was also suppressed by the pragma
7 years ago
Christopher F
97397f3617
Apply consistency to attributes in the commands extension ( #928 )
* Apply consistency to attributes in the commands extension
This resolves #527 .
Not sure if I missed any, putting this up for review.
* Allow preconditions to be used multiple times (for use with groups)
7 years ago
Christopher F
e5dfb6c3e5
Fix null channel being passed in RequirePermission preconditions ( #886 )
* Fix null channel being passed in RequirePermission preconditions
* c#7 pattern matching
7 years ago
Christopher F
14fbe40cbc
Add Async suffix to command-related Tasks ( #804 )
commit b7fb44a94f
Author: Hsu Still <341464@gmail.com>
Date: Sat Sep 2 14:34:18 2017 +0800
Fix more async naming violation
commit e6912e2d02
Author: Hsu Still <341464@gmail.com>
Date: Sat Sep 2 14:23:04 2017 +0800
Fix incorrect null xmldocs string
commit da8d23222d
Author: Hsu Still <341464@gmail.com>
Date: Sat Sep 2 14:17:12 2017 +0800
Fix CheckPreconditionsAsync
commit 992407407a
Author: Hsu Still <341464@gmail.com>
Date: Sat Sep 2 14:07:12 2017 +0800
Add Async suffix to abstract Task methods
7 years ago
Christopher F
347c5a0d39
Disable obsolete warnings in files that reference TokenType.User
7 years ago
Christopher F
608bc359ee
Removed IChannel#Nsfw, added to ITextChannel
7 years ago
Izumemori
9c81ab9fe4
changed NameAttribute to work for parameter ( #765 )
7 years ago
RogueException
dfcb4b39fb
Allow duplicate RequireBotPermissionAttribute
7 years ago
Joe4evr
4a9c8168a9
Add grouping of preconditions to allow for flexible precondition logic. ( #672 )
* Add grouping of preconditions to allow for flexible precondition logic.
* Fix checking Module Preconditions twice (and none of the command's own)
* Fix command preconditions group 0 looping over every other precondition anyway #whoopsies
* Use custom message when a non-zero Precondition Group fails.
* Fix doc comment rendering.
* Refactor loops into local function
* Considering a new result type
* Switch to IReadOnlyCollection<T> and fix compiler errors
* Revert PreconditionResult -> IResult in return types - Change PreconditionResult to a class that PreconditionGroupResult inherits.
* Feedback on property name.
* Change grouping type int -> string
* Explicitly use an ordinal StringComparer
* Full stops on error messages
* Remove some sillyness.
* Remove unneeded using.
8 years ago
FiniteReality
0550006d56
Change wording of permission preconditions
Also fix an issue where RequireBotPermission may throw if used in a
non-guild channel which required guild permissions.
8 years ago
RogueException
870dc50a68
Fixed RequireNsfwAttribute definition
8 years ago
RogueException
ba1982a3f9
Replaced DependencyMap with ServiceCollection and IServiceProvider ( #625 )
8 years ago
Christopher F
7f1fc286cf
Add IChannel.Nsfw, RequireNsfw precondition ( #633 )
* Add IChannel.Nsfw, RequireNsfw precondition
* Refactored IChannel.Nsfw to IsNsfw, removed NsfwUtils
Per pull-request feedback
* proper nsfw channel check
8 years ago
RogueException
683541ba24
Added RequireOwner support for User tokens
8 years ago
james7132
f1df412341
Change whitelist injection into blacklist injection
8 years ago
james7132
f0b4c24e82
Add InjectAttribute for annotating injectable properties
8 years ago
RogueException
2c075e186a
Added support for custom ModuleBase command contexts. Added SocketCommandContext/RpcCommandContext.
8 years ago
AntiTcb
5118ed876b
Can target classes now.
8 years ago
FiniteReality
d2d7b4dce7
Make `_typeReaderTypeInfo` static
Seems I missed this originally, whoops.
8 years ago
FiniteReality
156483bf71
Rename `overridenType` to `overridenTypeReader`
The previous name was causing some confusion
8 years ago
FiniteReality
f11f416024
Add IDependencyMap to parameter preconditions
8 years ago
FiniteReality
b7a5ee6542
Parameter preconditions and typereader overriding
8 years ago
RogueException
08ae9e4e86
Fixed logic in precondition attribute docstrings
8 years ago
RogueException
2a33bb0c12
Escaped amp in XML example.
8 years ago
RogueException
a0c9ba92db
Merge branch 'dev' into feature/more-preconditions
8 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).
8 years ago
Christopher F
1ed4f703bf
Cache the current application on DiscordSocketClient
8 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)
8 years ago
Christopher F
defc8f1c4e
Add docstrings to preconditions.
8 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.
8 years ago
Christopher F
fdecfe6bd4
Add RequireOwner Precondition
This precondition will require that the invoker of the command is the owner of the bot.
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
708f9fe514
Added CommandContext, fixed commands compile errors
8 years ago
FiniteReality
accb3e27b8
Add PriorityAttribute and sortby priority in Search
8 years ago
Khionu Terabite
b6c634b8b5
Renamed Description/Summary Attributes to Summary/Remarks, as per discussion in #239
8 years ago
RogueException
23a0316252
Split IMessage into IUserMessage and ISystemMessage
8 years ago
FiniteReality
95cf63243d
Implement Command Aliases
This implementation could probably be more efficient, but I
opted for clarity and simplicity where possible.
8 years ago
RogueException
9951112908
Readded AutoLoad setter
8 years ago
RogueException
06e81cbcca
Merge pull request #206 from FiniteReality/issue/203
Add NameAttribute for overriding Name in commands/modules
8 years ago
RogueException
6d766d5f98
Cleaned up command attributes
8 years ago
FiniteReality
252d89000d
Fix comment copy+paste fail
8 years ago
FiniteReality
8b864d4b9e
Fix #203 by adding a NameAttribute to override Name
8 years ago
RogueException
ac49f4b8b0
Rename RequirePermission -> RequirePermissionAttribute
8 years ago
RogueException
63d3b93975
Removed Discord.Commands.Attributes.Preconditions namespace
9 years ago
RogueException
dcb603acd7
Cleaned up permission checks, added Permissions.Has(enum) methods
9 years ago
RogueException
0b9f9b16a9
Merge pull request #178 from DigiTechs/command_tweaks
Command tweaks
9 years ago