-
-
Notifications
You must be signed in to change notification settings - Fork 465
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: AttributeError
when comparing commands
#2299
Conversation
mhh i would be careful with such a check. |
@Lulalaby I don't quite understand why this won't do, what's the issue and what do you suggest? |
discord tends to mess up the received orders of properties and send back complete different ones. |
I might've overlooked stuff like that, will look into our sync algorithm again to see if this could cause any issues. |
if you're referring to the order in which the data is sent back, i believe dictionaries are unordered by default |
Yes, that's right, but I figured I'd still check everything in case some info is missing somewhere or whatever ( |
I think the only thing this will break is |
good that i reminded you to check |
ApplicationCommand.__eq__
preciseAttributeError
when comparing commands
Now that I think about it, it actually comes down to what we want this method to check: either the commands having the same frontend (the same name in the same guilds) or the commands being completely identical. I reworked this pull request to only fix the potential |
Signed-off-by: Dorukyum <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>
Summary
Fixes
AttributeError
s that occur when comparing application commands with non-command objects.Information
examples, ...).
Checklist
type: ignore
comments were used, a comment is also left explaining why.