modernise pt2
This commit is contained in:
parent
b654530821
commit
8be28fdb96
@ -2575,7 +2575,7 @@ class Guild(Hashable):
|
|||||||
|
|
||||||
return roles
|
return roles
|
||||||
|
|
||||||
async def welcome_screen(self):
|
async def welcome_screen(self) -> WelcomeScreen:
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
Returns the guild's welcome screen.
|
Returns the guild's welcome screen.
|
||||||
@ -2585,7 +2585,7 @@ class Guild(Hashable):
|
|||||||
You must have the :attr:`~Permissions.manage_guild` permission to use
|
You must have the :attr:`~Permissions.manage_guild` permission to use
|
||||||
this as well.
|
this as well.
|
||||||
|
|
||||||
.. versionadded:: 1.7
|
.. versionadded:: 2.0
|
||||||
|
|
||||||
Raises
|
Raises
|
||||||
-------
|
-------
|
||||||
@ -2602,6 +2602,20 @@ class Guild(Hashable):
|
|||||||
data = await self._state.http.get_welcome_screen(self.id)
|
data = await self._state.http.get_welcome_screen(self.id)
|
||||||
return WelcomeScreen(data=data, guild=self)
|
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):
|
async def edit_welcome_screen(self, **kwargs):
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
@ -2613,7 +2627,7 @@ class Guild(Hashable):
|
|||||||
You must have the :attr:`~Permissions.manage_guild` permission to use
|
You must have the :attr:`~Permissions.manage_guild` permission to use
|
||||||
this as well.
|
this as well.
|
||||||
|
|
||||||
.. versionadded:: 1.7
|
.. versionadded:: 2.0
|
||||||
|
|
||||||
Returns
|
Returns
|
||||||
--------
|
--------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user