mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-11 20:35:26 +00:00
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:
parent
7ac4f3007b
commit
13e102b6b9
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user