-
-
Notifications
You must be signed in to change notification settings - Fork 468
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
Fix: Fix discord.errors not working #681
Fix: Fix discord.errors not working #681
Conversation
Any update on this? |
Could you please provide recreation code where you got this error? |
@Middledot |
Also commands shouldn't be imported in that file at all. The real fix to this problem is just to remove that line which imports commands into the discord folder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that .commands.errors does override it
Summary
It fixes
discord.errors.XXX
not working.Currently,
discord.errors
is overridden bydiscord.commands.errors
because offrom .commands import *
.So I changed to
from .commands.__init__ import *
.Checklist
type: ignore
comments were used, a comment is also left explaining why