We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@commands.check()
1 parent 7bd94de commit 02d1e34Copy full SHA for 02d1e34
discord_slash/model.py
@@ -34,6 +34,8 @@ def __init__(self, name, cmd): # Let's reuse old command formatting.
34
# Since this isn't inherited from `discord.ext.commands.Command`, discord.py's check decorator will
35
# add checks at this var.
36
self.__commands_checks__ = []
37
+ if hasattr(self.func, '__commands_checks__'):
38
+ self.__commands_checks__ = self.func.__commands_checks__
39
40
async def invoke(self, *args, **kwargs):
41
"""
0 commit comments