#I tried to open the modal from the button, but it didn't work.Finally, I want to send it to another
1 messages · Page 1 of 1 (latest)
For everyone's sake here: use a codeblock
And you're not saying how it's not working
Nor provided any errors
There is no error.
Then how's it not working
And use a codeblock for the code
Literally can't read anything like that
Is there an error in this code? Even if I press the button that came out with the slash command, the modal won't open😭
- ctx.interaction.response can just be ctx.respond
- your modal callback makes no sense, you must respond
- you're not even subclassing a modal view
- you're not even sending the modal on the button view
- your button won't even work cause there's no callback assigned to it
TL;DR: your code is a mess, nothing works. You subclassed wrong stuff and didn't even do it right.
And why are you now using a commands.Bot instance. That won't solve anything
Please tell me, teacher.
No I won't 👍🏽
Use the guides and examples
I won't fix your code. Which is rewriting most of it
This thread was archived by the user that opened it.