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 return decorator
async def sync(self, *, guild: Optional[Snowflake]) -> List[AppCommand]: async def sync(self, *, guild: Optional[Snowflake] = None) -> List[AppCommand]:
"""|coro| """|coro|
Syncs the application commands to Discord. Syncs the application commands to Discord.