From fa6aab903fae77dd9b25984e5c882adc97fa25c1 Mon Sep 17 00:00:00 2001 From: Soheab <33902984+Soheab@users.noreply.github.com> Date: Thu, 15 Jan 2026 17:22:08 +0100 Subject: [PATCH] InviteTargetUsersJobStatus -> InviteUsersJob --- discord/invite.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/discord/invite.py b/discord/invite.py index 8d318bc11..9a3531d7b 100644 --- a/discord/invite.py +++ b/discord/invite.py @@ -74,7 +74,7 @@ if TYPE_CHECKING: import datetime -class InviteTargetUsersJobStatus: +class InviteUsersJob: """Represents the status of an invite's target users job. .. versionadded:: 2.7 @@ -83,7 +83,7 @@ class InviteTargetUsersJobStatus: ----------- invite: :class:`Invite` The invite this job status is for. - status: :class:`InviteTargetUsersJobStatus` + status: :class:`InviteTargetUsersJob` The status of the job. total_users: :class:`int` The total number of users in the job. @@ -108,7 +108,7 @@ class InviteTargetUsersJobStatus: def __repr__(self) -> str: return ( - f'' ) @@ -672,7 +672,7 @@ class Invite(Hashable): users = string.lstrip('Users\n').split('\n') return [int(user_id) for user_id in users if user_id] - async def fetch_target_users_job_status(self) -> InviteTargetUsersJobStatus: + async def fetch_target_users_job_status(self) -> InviteUsersJob: """|coro| Fetches the status of the target users job for this invite. @@ -695,7 +695,7 @@ class Invite(Hashable): """ data = await self._state.http.get_invite_target_users_job_status(self.code) - return InviteTargetUsersJobStatus(invite=self, data=data) + return InviteUsersJob(invite=self, data=data) async def edit( self,