6060from .voice_client import VoiceClient , VoiceProtocol
6161from .sticker import GuildSticker , StickerItem
6262from . import utils
63- from .flags import GuildInviteFlags
63+ from .flags import InviteFlags
6464
6565__all__ = (
6666 'Snowflake' ,
@@ -1258,7 +1258,7 @@ async def create_invite(
12581258 target_type : Optional [InviteTarget ] = None ,
12591259 target_user : Optional [User ] = None ,
12601260 target_application_id : Optional [int ] = None ,
1261- guest_invite : bool = False ,
1261+ guest : bool = False ,
12621262 ) -> Invite :
12631263 """|coro|
12641264
@@ -1297,11 +1297,9 @@ async def create_invite(
12971297 The id of the embedded application for the invite, required if ``target_type`` is :attr:`.InviteTarget.embedded_application`.
12981298
12991299 .. versionadded:: 2.0
1300- guest_invite : :class:`bool`
1300+ guest : :class:`bool`
13011301 Whether the invite is a guest invite.
13021302
1303- This is only available to guilds that contain ``GUESTS_ENABLED`` in :attr:`.Guild.features`.
1304-
13051303 .. versionadded:: 2.6
13061304
13071305 Raises
@@ -1320,10 +1318,10 @@ async def create_invite(
13201318 if target_type is InviteTarget .unknown :
13211319 raise ValueError ('Cannot create invite with an unknown target type' )
13221320
1323- flags : Optional [GuildInviteFlags ] = None
1324- if guest_invite :
1325- flags = GuildInviteFlags ._from_value (0 )
1326- flags .is_guest_invite = True
1321+ flags : Optional [InviteFlags ] = None
1322+ if guest :
1323+ flags = InviteFlags ._from_value (0 )
1324+ flags .guest = True
13271325
13281326 data = await self ._state .http .create_invite (
13291327 self .id ,
0 commit comments