dolfies / discord.py-self

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

ImportError: cannot import name "on_modal" from "selfcord" #516

Closed BlueSchnabeltier closed 1 year ago

BlueSchnabeltier commented 1 year ago

Summary

There ain't no on_modal function in discord.py-self and selfcord.

Reproduction Steps

Run this code:

from selfcord import on_modal

Stacktrace

  File "C:\Users\Administrator\Desktop\Moonjourney\functions\payload.py", line 2, in <module>
    from selfcord import on_modal
ImportError: cannot import name 'on_modal' from 'selfcord' (C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\selfcord\__init__.py)

Expected Results

It should import on_modal.

Actual Results

It ain't importing on_modal, cause it ain't there.

System Information

Checklist

Additional Information

No response

dolfies commented 1 year ago

Sorry for the late response. This isn't how you're supposed to use events. Please reference the documentation.