Allow for decorator chaining when a decorator modifies the kwargs
dob9601 opened this issue · comments
I've got a decorator that adds an additional kwarg to a function and have been using this with the default discord.py framework. This decorator helps integrate django with discord.py by using the user id in the context to fetch the user object from the django database. However, due to the code shown here:
dislash.py/dislash/slash_commands/slash_core.py
Lines 365 to 374 in 6aa5f28
That kwarg never actually reaches the function.
Would it be possible to add support for additional custom kwargs by exposing all additional kwargs to the command function?
I'll add custom kwargs support in the nearest patch, thank you for sharing this issue
Additional custom kwargs are now supported in dislash.py v1.2.3