Conversation
- Fix a misplaced bracket which caused in malfunctions - Add an "end" method to proporly ACK a slash interaction - Minor fixes for some event emittor stuff
mactul
left a comment
There was a problem hiding this comment.
I reread the discord.py code to check and you are right, the @client.event decorator allows you to call functions from the client class, it's cleaner
For the end function, returning a callback didn't exist when I wrote the library, I had a quick look and I can see what it does.
However, I don't understand in your code when the end function is called?
If not, yes, I'll add you in the credits, when I'll get the code straight ^^
|
Oh I added your module as a git submodule to my repo and it looks like some extra changes have been commited to this branch I submitted the PR ^^ And the @client.event
async def on_interaction(*args, **kwargs):
# ...
await interaction.end(content = "Handled the interaciton!")Anyways, should I just remove those extra things as this is just supposed to fix a paren or leave it as it is according to your needs |
This is related with and closes #2