From a83026598b91cc5e26d41d285a7add2863bb3f7c Mon Sep 17 00:00:00 2001 From: Paillat-dev Date: Wed, 10 Jun 2026 16:23:09 +0200 Subject: [PATCH 1/2] fix: Incorrect attribute access in `Invite.edit_target_users` --- discord/invite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/invite.py b/discord/invite.py index c0e1157205..198f0987bf 100644 --- a/discord/invite.py +++ b/discord/invite.py @@ -746,7 +746,7 @@ async def edit_target_users(self, target_users_file: File) -> None: The invite is invalid or expired. """ await self._state.http.update_invite_target_users( - self.invite_code, target_users_file=target_users_file + self.code, target_users_file=target_users_file ) async def fetch_target_users_job_status(self) -> InviteTargetUsersJobStatus: From a39b03ab1092fa71aaefcc7358f4ec1ccbebf38d Mon Sep 17 00:00:00 2001 From: Paillat-dev Date: Wed, 10 Jun 2026 16:23:41 +0200 Subject: [PATCH 2/2] docs: CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5173e5795c..53e3bcd13b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#3231](https://github.com/Pycord-Development/pycord/pull/3231)) - Allow `ForumTag` to be created without an emoji. ([#3245](https://github.com/Pycord-Development/pycord/pull/3245)) +- Fix `AttributeError` when using `Invite.edit_target_users` + ([#3257](https://github.com/Pycord-Development/pycord/pull/3257)) ### Deprecated