@@ -2082,43 +2082,6 @@ async def leave(self) -> None:
20822082 """
20832083 await self ._state .http .leave_guild (self .id )
20842084
2085- async def delete (self ) -> None :
2086- """|coro|
2087-
2088- Deletes the guild. You must be the guild owner to delete the
2089- guild.
2090-
2091- Raises
2092- ------
2093- HTTPException
2094- Deleting the guild failed.
2095- Forbidden
2096- You do not have permissions to delete the guild.
2097- """
2098- await self ._state .http .delete_guild (self .id )
2099-
2100- async def set_mfa_required (self , required : bool , * , reason : str = None ) -> None :
2101- """|coro|
2102-
2103- Set whether it is required to have MFA enabled on your account
2104- to perform moderation actions. You must be the guild owner to do this.
2105-
2106- Parameters
2107- ----------
2108- required: :class:`bool`
2109- Whether MFA should be required to perform moderation actions.
2110- reason: :class:`str`
2111- The reason to show up in the audit log.
2112-
2113- Raises
2114- ------
2115- HTTPException
2116- The operation failed.
2117- Forbidden
2118- You are not the owner of the guild.
2119- """
2120- await self ._state .http .edit_guild_mfa (self .id , required , reason = reason )
2121-
21222085 async def edit (
21232086 self ,
21242087 * ,
@@ -2131,7 +2094,6 @@ async def edit(
21312094 discovery_splash : bytes | None = MISSING ,
21322095 community : bool = MISSING ,
21332096 afk_channel : VoiceChannel | None = MISSING ,
2134- owner : Snowflake = MISSING ,
21352097 afk_timeout : int = MISSING ,
21362098 default_notifications : NotificationLevel = MISSING ,
21372099 verification_level : VerificationLevel = MISSING ,
@@ -2195,9 +2157,6 @@ async def edit(
21952157 The new channel that is the AFK channel. Could be ``None`` for no AFK channel.
21962158 afk_timeout: :class:`int`
21972159 The number of seconds until someone is moved to the AFK channel.
2198- owner: :class:`Member`
2199- The new owner of the guild to transfer ownership to. Note that you must
2200- be owner of the guild to do this.
22012160 verification_level: :class:`VerificationLevel`
22022161 The new verification level for the guild.
22032162 default_notifications: :class:`NotificationLevel`
@@ -2240,8 +2199,7 @@ async def edit(
22402199 Editing the guild failed.
22412200 InvalidArgument
22422201 The image format passed in to ``icon`` is invalid. It must be
2243- PNG or JPG. This is also raised if you are not the owner of the
2244- guild and request an ownership transfer.
2202+ PNG or JPG.
22452203
22462204 Returns
22472205 --------
@@ -2318,14 +2276,6 @@ async def edit(
23182276 else :
23192277 fields ["public_updates_channel_id" ] = public_updates_channel .id
23202278
2321- if owner is not MISSING :
2322- if self .owner_id != self ._state .self_id :
2323- raise InvalidArgument (
2324- "To transfer ownership you must be the owner of the guild."
2325- )
2326-
2327- fields ["owner_id" ] = owner .id
2328-
23292279 if verification_level is not MISSING :
23302280 if not isinstance (verification_level , VerificationLevel ):
23312281 raise InvalidArgument (
0 commit comments