diff --git a/discord/abc.py b/discord/abc.py index 724337519..67dc28014 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -1282,7 +1282,7 @@ class GuildChannel: target_type: Optional[InviteTarget] = None, target_user: Optional[User] = None, target_application_id: Optional[int] = None, - target_role_ids: Optional[List[int]] = None, + target_role_ids: Optional[Sequence[Snowflake]] = None, guest: bool = False, ) -> Invite: """|coro| @@ -1322,7 +1322,7 @@ class GuildChannel: The id of the embedded application for the invite, required if ``target_type`` is :attr:`.InviteTarget.embedded_application`. .. versionadded:: 2.0 - target_role_ids: Optional[List[:class:`int`]] + target_role_ids: Optional[Sequence[:class:`abc.Snowflake`]] A list of role IDs to assign to the user upon accepting this invite. guest: :class:`bool` diff --git a/discord/http.py b/discord/http.py index ae7e7f38c..d0e83f34b 100644 --- a/discord/http.py +++ b/discord/http.py @@ -1854,7 +1854,7 @@ class HTTPClient: target_type: Optional[invite.InviteTargetType] = None, target_user_id: Optional[Snowflake] = None, target_application_id: Optional[Snowflake] = None, - target_role_ids: Optional[List[Snowflake]] = None, + target_role_ids: Optional[Sequence[Snowflake]] = None, flags: Optional[int] = None, ) -> Response[invite.Invite]: r = Route('POST', '/channels/{channel_id}/invites', channel_id=channel_id)