modernise pt2

This commit is contained in:
NCPlayz 2021-04-18 22:43:53 +01:00 committed by Arthur Jovart
parent b654530821
commit 8be28fdb96
No known key found for this signature in database
GPG Key ID: DE4444AAAAAAAAAA

View File

@ -2575,7 +2575,7 @@ class Guild(Hashable):
return roles
async def welcome_screen(self):
async def welcome_screen(self) -> WelcomeScreen:
"""|coro|
Returns the guild's welcome screen.
@ -2585,7 +2585,7 @@ class Guild(Hashable):
You must have the :attr:`~Permissions.manage_guild` permission to use
this as well.
.. versionadded:: 1.7
.. versionadded:: 2.0
Raises
-------
@ -2602,6 +2602,20 @@ class Guild(Hashable):
data = await self._state.http.get_welcome_screen(self.id)
return WelcomeScreen(data=data, guild=self)
@overload
async def edit_welcome_screen(
self,
*,
description: Optional[str] = ...,
welcome_channels: Optional[List[WelcomeChannel]] = ...,
enabled: Optional[bool] = ...,
) -> WelcomeScreen:
...
@overload
async def edit_welcome_screen(self) -> None:
...
async def edit_welcome_screen(self, **kwargs):
"""|coro|
@ -2613,7 +2627,7 @@ class Guild(Hashable):
You must have the :attr:`~Permissions.manage_guild` permission to use
this as well.
.. versionadded:: 1.7
.. versionadded:: 2.0
Returns
--------