Skip to content

Commit c12e640

Browse files
authored
Fixed small bug in ApplicationCommand (#1585)
Fixed small bug where `ApplicationCommand.__eq__` would do this comparison: `self.guild_ids == self.guild_ids` instead of `self.guild_ids == other.guild_ids`
1 parent 966f560 commit c12e640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/commands/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def __eq__(self, other) -> bool:
221221
if getattr(self, "id", None) is not None and getattr(other, "id", None) is not None:
222222
check = self.id == other.id
223223
else:
224-
check = self.name == other.name and self.guild_ids == self.guild_ids
224+
check = self.name == other.name and self.guild_ids == other.guild_ids
225225
return isinstance(other, self.__class__) and self.parent == other.parent and check
226226

227227
async def __call__(self, ctx, *args, **kwargs):

0 commit comments

Comments
 (0)