Add improved docs for slash commands #77

Merged
Gnome-py merged 3 commits from slash-docs into 2.0 2021-09-27 08:14:07 +00:00
Showing only changes of commit a295b4ab38 - Show all commits

View File

@ -399,9 +399,9 @@ class Command(_BaseCommand, Generic[CogT, P, T]):
command_attrs = {}
try:
checks = command_attrs.pop("checks")
checks = func.__commands_checks__
checks.reverse()
except KeyError:
except AttributeError:
checks = kwargs.get("checks", [])
try: