Khionu Terabite
b6c634b8b5
Renamed Description/Summary Attributes to Summary/Remarks, as per discussion in #239
8 years ago
FiniteReality
1ab763e157
Allow parameterless commands to build correctly
Resolves #253
8 years ago
RogueException
ab42129eb9
Include which command failed to build on exception
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
f6d8659a2e
Removed ParamList null checks
8 years ago
Khionu Terabite
ad54be8790
Changed Parameter Summary from pulling DescriptionAttribute to SummaryAttribute
8 years ago
RogueException
324664917d
Added new parameter scoring, support multiple matches
8 years ago
FiniteReality
8b864d4b9e
Fix #203 by adding a NameAttribute to override Name
8 years ago
RogueException
9bef81e600
Improve exception for parameterless commands.
8 years ago
RogueException
fc17aa3ea0
Remove guild check from Message.Resolve
8 years ago
RogueException
94d6acc00e
Exposed reflection classes on commands, modules and parameters
9 years ago
RogueException
e452aa9662
Cleaned up Command Result structs
9 years ago
RogueException
0b9f9b16a9
Merge pull request #178 from DigiTechs/command_tweaks
Command tweaks
9 years ago
Finite Reality
f7633ea3d7
Revert 3856d43
& rename CommandParameter.Description to Summary
9 years ago
Finite Reality
86092f9253
Rename Synopsis to Summary to improve clarity
9 years ago
Finite Reality
11f1163ec2
Add Command and module instance parameters to CheckPermissions
After a small discussion with Joe4evr on discord, a way of retrieving the
state of a module appeared to be needed. The new override should provide
enough context to a bot dev to allow them to do what they want.
9 years ago
Finite Reality
1e72eca34a
Remove Preconditions check from Command.Execute
Preconditions are still handled by CommandService.Execute
9 years ago
Finite Reality
046d56cab5
Add module-level preconditions and precondition for individual permissions
9 years ago
Finite Reality
0e920da21f
Complete Preconditions implementation
9 years ago
Finite Reality
a5393dc937
Rename Permission to Precondition
9 years ago
Finite Reality
757c36ccd1
Rename and move things about
9 years ago
Finite Reality
8c0d4b6123
Improve command documentation features
9 years ago
Finite Reality
eb38bdd437
Fix indentation
9 years ago
Finite Reality
772fd97080
Implement initial command permissions system
After our initial discussion on the matter (see #172 ) this is the system
that we all seem to have agreed on. As a result, I have implemented a
simple system which effectively implements permissions, while being
extensible and tweakable so bot devs can decide what they want to do for
permissions.
As for default 'permissions', I'm not sure what the best approach would be
here; bot devs are likely to implement their own permissions 'levels' and
use those. I think the most we could do for now is add attributes to
require certain users (by id) and certain roles (by id and possibly by
name?) This would probably be the best option for now as it requires less
work from us, nor do we know the *exact* approach bot devs want to take
with permissions.
9 years ago
RogueException
a04cf5201a
Cleaned up params implementation
9 years ago
Finite Reality
6732e256fb
Clean up a little
9 years ago
Finite Reality
5ce609c323
Fix small typo
9 years ago
Finite Reality
c8fc0ffa33
Add support for 'params' arguments
9 years ago
Khionu Terabite
846a1746a2
Added `Command.Synopsis` for seperation of short and long descriptions, this being intended for long.
9 years ago
RogueException
02d5fc4a8e
Exposed CommandParameter's Type
9 years ago
RogueException
c5569a44ea
Renamed Unparsed -> Remainder. Fixed non-string remainder parameters.
9 years ago
RogueException
ff017bd51f
Remove string check for unparsed
9 years ago
RogueException
b407c71567
Added support for non-int enums
9 years ago
Khionu Terabite
523b862525
Added Dynamic Enum TypeParsing, to support all enums
9 years ago
Khionu Terabite
63fdd67413
Initial Plan for allowing custom Enum Type Readers
9 years ago
RogueException
63fbdb394b
Ensure Task return type for commands
9 years ago
RogueException
7bb890cbfe
Added command groups, fixed several bugs
9 years ago
RogueException
f59b6b9004
Implemented command type readers, parser and service.
9 years ago
RogueException
32ab967f4a
Reorganized commands structure
9 years ago
RogueException
5bdd6a7ff3
Early 1.0 REST Preview
9 years ago
RogueException
27d7e9915b
Initial 1.0-alpha1 design changes
9 years ago
RogueException
0db0675cb5
Rewrote AudioClient, fixed several async issues, removed most sealed keywords.
9 years ago
RogueException
c1bee10523
Cleaned up several classes
9 years ago
RogueException
5760e94d81
Reworked internal task engine for DiscordClient and WebSocket. Several other minor async fixes.
9 years ago
RogueException
64e6ea4173
Added GetArg(name) to CommandEventArgs
9 years ago
RogueException
3f9e9040a5
Added Command[paramName]
9 years ago
RogueException
f06a1d7278
Added support for custom errors from permission checkers
9 years ago
RogueException
c09c41599a
Removed Min/MaxArgs
9 years ago
RogueException
093095e410
Added new permissions system, fixed more commands and module bugs.
9 years ago