Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on_modal doesn't work #655

Open
3 tasks done
NotTrueFalse opened this issue Feb 1, 2024 · 0 comments
Open
3 tasks done

on_modal doesn't work #655

NotTrueFalse opened this issue Feb 1, 2024 · 0 comments
Labels
unconfirmed bug Unconfirmed bug

Comments

@NotTrueFalse
Copy link

Summary

I tried on_modal event and it didn't work

Reproduction Steps

install discord.py-self : version = '2.1.0a' (from github)
create a simple client instance with the event (look code submission).
use a bot to trigger a modal event.
nothing out 🤔.
image

Code

class MyClient(discord.Client):
    async def on_ready(self):
        print('Logged on as', self.user)
        
    async def on_modal(self, modal:discord.Modal):
        print(modal)

client = MyClient()
client.run(conf["token"])

Expected Results

The function should be called, and it should print something.

Actual Results

nothing

System Information

  • Python v3.11.7-final
  • discord.py-self v2.1.0-alpha
    • discord.py-self metadata: v2.1.0a4840+g43f46aa8
  • aiohttp v3.9.3
  • system info: Windows 10 10.0.22631

Checklist

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • I am using a user token (and it isn't visible in the code).

Additional Information

No response

@NotTrueFalse NotTrueFalse added the unconfirmed bug Unconfirmed bug label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unconfirmed bug Unconfirmed bug
Projects
None yet
Development

No branches or pull requests

1 participant