Discord.Net icon indicating copy to clipboard operation
Discord.Net copied to clipboard

Rename precondition base classes in 4.0

Open dukesteen opened this issue 3 years ago • 0 comments

Creating a custom precondition is possible by inheriting from PreconditionAttribute for both interactions and commands. When you don't pay attention it's easy to import the wrong namespace and the precondition will not work. I propose to rename PreconditionAttribute to InteractionPreconditionAttribute and CommandPreconditionAttribute respectively.

dukesteen avatar Aug 08 '22 11:08 dukesteen