dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
648 stars 153 forks source link

on_modal doesn't work #655

Open NotTrueFalse opened 5 months ago

NotTrueFalse commented 5 months ago

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

Checklist

Additional Information

No response