mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +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
|
||||
|
||||
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.
|
||||
|
@ -3344,7 +3344,7 @@ class Guild(Hashable):
|
||||
-------
|
||||
ClientException
|
||||
The members intent is not enabled.
|
||||
|
||||
|
||||
Returns
|
||||
--------
|
||||
Optional[List[:class:`Member`]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user