Add default parameter to CommandTree.sync

I'm not sure how I feel about this, since explicitly passing
guild=None seems better.
This commit is contained in:
Rapptz 2022-03-05 22:02:33 -05:00
parent 7ac4f3007b
commit 13e102b6b9
2 changed files with 2 additions and 2 deletions

View File

@ -543,7 +543,7 @@ class CommandTree(Generic[ClientT]):
return decorator
async def sync(self, *, guild: Optional[Snowflake]) -> List[AppCommand]:
async def sync(self, *, guild: Optional[Snowflake] = None) -> List[AppCommand]:
"""|coro|
Syncs the application commands to Discord.

View File

@ -3344,7 +3344,7 @@ class Guild(Hashable):
-------
ClientException
The members intent is not enabled.
Returns
--------
Optional[List[:class:`Member`]]