mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-07-19 13:54:44 -04:00
[GH-ISSUE #753] Add compile-time check for CheckBaseAttributes being used with GroupCommandAttribute #67
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Originally created by @13xforever on GitHub (Apr 30, 2021).
Original GitHub issue: https://github.com/RPCS3/discord-bot/issues/753
Originally assigned to: @13xforever on GitHub.
Unlike
CommandAttribute,GroupCommandAttributedoes not preserve check attributes when building the command list, so all checks will be siltently ignored. This is a big issue for security checks.We already have source generators hooked up, just need to write a roslyn analyzer and throw an error to prevent this happenning in the future.
Add compile-time check for CheckBaseAttributes being used with GroupCommandAttributeto [GH-ISSUE #753] Add compile-time check for CheckBaseAttributes being used with GroupCommandAttribute