@@ -572,7 +572,7 @@ async def sync_commands(
572
572
guild_ids : Optional [List [int ]] = None ,
573
573
register_guild_commands : bool = True ,
574
574
check_guilds : Optional [List [int ]] = [],
575
- delete_exiting : bool = True ,
575
+ delete_existing : bool = True ,
576
576
) -> None :
577
577
"""|coro|
578
578
@@ -612,7 +612,7 @@ async def sync_commands(
612
612
guilds. Unlike ``guild_ids``, this does not alter the commands' :attr:`~.ApplicationCommand.guild_ids`
613
613
attribute, instead it adds the guild ids to a list of guilds to sync commands for. If
614
614
``register_guild_commands`` is set to False, then this parameter is ignored.
615
- delete_exiting : :class:`bool`
615
+ delete_existing : :class:`bool`
616
616
Whether to delete existing commands that are not in the list of commands to register. Defaults to True.
617
617
"""
618
618
@@ -627,7 +627,7 @@ async def sync_commands(
627
627
628
628
global_commands = [cmd for cmd in commands if cmd .guild_ids is None ]
629
629
registered_commands = await self .register_commands (
630
- global_commands , method = method , force = force , delete_existing = delete_exiting
630
+ global_commands , method = method , force = force , delete_existing = delete_existing
631
631
)
632
632
633
633
registered_guild_commands = {}
@@ -642,7 +642,7 @@ async def sync_commands(
642
642
for guild_id in set (cmd_guild_ids ):
643
643
guild_commands = [cmd for cmd in commands if cmd .guild_ids is not None and guild_id in cmd .guild_ids ]
644
644
registered_guild_commands [guild_id ] = await self .register_commands (
645
- guild_commands , guild_id = guild_id , method = method , force = force , delete_existing = delete_exiting
645
+ guild_commands , guild_id = guild_id , method = method , force = force , delete_existing = delete_existing
646
646
)
647
647
648
648
global_permissions : List = []
0 commit comments