Sample implementation of per-subcommand preconditions
Hello! Are there any examples on how would I be able to implement the new feature? And I suppose this supports both interaction and message preconditions? And would this be a better option instead of using precondition decorators? Thank you!
4 Replies
Thank you!!
Additional question, should I have a command with subcommands, and I'd like a certain command to only run in DMs but the rest can run in text channels, how would I be able to achieve this now that run in preconditions are deprecated?
Add a precondition with
(And adjust types as necessary)
I see! Cool stuff, thank you!