INTERACTION_SUCCESS referencing an unknown interaction ID #750
-
Sometimes when my code gets to button.click() it spits out Here is my current code simplified async def on_message(self, message: discord.Message):
if message.author.id == 1295130288506146918:
for component in message.components:
for child in component.children:
print(child)
print('Bouta click')
await child.click() # warning prints here
print('clicked maybe probably not')
modal = await self.wait_for('modal')
for component in modal.components:
for child in component.children:
await child.answer('6969')
await modal.submit()```
after further investigation this appears to only happen when the button shows a modal and does nothing else |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
same issue |
Beta Was this translation helpful? Give feedback.
-
Turns out instead of using Also if anyone is having issues with the nonce for a modal I found it to usually be |
Beta Was this translation helpful? Give feedback.
Turns out instead of using
wait_for('modal')
, you have to use theon_modal()
event. A little inconvenient but it works, sorta.Also if anyone is having issues with the nonce for a modal I found it to usually be
modal.id - 24