Skip to content

Tried to create a custom decorator for my commands but couldn't be done. #3946

Answered by Bibo-Joshi
taaaal asked this question in Q&A
Discussion options

You must be logged in to vote

Adding self as argument to wrapper and passing it along to func does the trick for me. Alternatively, you can ofc also just use *args, **kwargs

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@Bibo-Joshi
Comment options

@taaaal
Comment options

@taaaal
Comment options

@Bibo-Joshi
Comment options

Answer selected by taaaal
@taaaal
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants