diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f0494f351..590b469397 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,8 @@ These changes are available on the `master` branch, but have not yet been releas ### Fixed +- Fixed `AttributeError` when using `Modal.remove_item()`. + ([#3357](https://github.com/Pycord-Development/pycord/pull/3357)) - Fix `TypeError` when accessing `ApplicationCommand.guild_only` or `SlashCommandGroup.guild_only` when `contexts` is `None`. ([#3320](https://github.com/Pycord-Development/pycord/pull/3320)) diff --git a/discord/ui/modal.py b/discord/ui/modal.py index bb5fabc8ee..8b35ecd889 100644 --- a/discord/ui/modal.py +++ b/discord/ui/modal.py @@ -360,7 +360,7 @@ def remove_item(self, item: InputText) -> Self: super().remove_item(item) try: - self.__weights.remove_item(item) + self._weights.remove_item(item) except ValueError: pass return self