[Commands] Allow custom checks to add attributes to the Command instance #60
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "command-attrs-checks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
This adds the
command_attrs
parameter to thecommands.check
decorator and reworks a lot of checks in order to allow introspection later of attributes likeCommand.required_permissions
.Checklist
I'm confused as to why this exists, adding command attrs inside a check seems like a niche usecase, does the library really need to handle this
This is so things like
Command.required_permissions
is possible to access + allow user checks to add similar attributes