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 🤔.
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
[X] I have searched the open issues for duplicates.
[X] I have shared the entire traceback.
[X] I am using a user token (and it isn't visible in the code).
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 🤔.
Code
Expected Results
The function should be called, and it should print something.
Actual Results
nothing
System Information
Checklist
Additional Information
No response