Skip to content

Commit e3bb107

Browse files
authored
Fixing typo delete_exiting -> delete_existing (#1336)
1 parent 2e51b4d commit e3bb107

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

discord/bot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ async def sync_commands(
572572
guild_ids: Optional[List[int]] = None,
573573
register_guild_commands: bool = True,
574574
check_guilds: Optional[List[int]] = [],
575-
delete_exiting: bool = True,
575+
delete_existing: bool = True,
576576
) -> None:
577577
"""|coro|
578578
@@ -612,7 +612,7 @@ async def sync_commands(
612612
guilds. Unlike ``guild_ids``, this does not alter the commands' :attr:`~.ApplicationCommand.guild_ids`
613613
attribute, instead it adds the guild ids to a list of guilds to sync commands for. If
614614
``register_guild_commands`` is set to False, then this parameter is ignored.
615-
delete_exiting: :class:`bool`
615+
delete_existing: :class:`bool`
616616
Whether to delete existing commands that are not in the list of commands to register. Defaults to True.
617617
"""
618618

@@ -627,7 +627,7 @@ async def sync_commands(
627627

628628
global_commands = [cmd for cmd in commands if cmd.guild_ids is None]
629629
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
631631
)
632632

633633
registered_guild_commands = {}
@@ -642,7 +642,7 @@ async def sync_commands(
642642
for guild_id in set(cmd_guild_ids):
643643
guild_commands = [cmd for cmd in commands if cmd.guild_ids is not None and guild_id in cmd.guild_ids]
644644
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
646646
)
647647

648648
global_permissions: List = []

0 commit comments

Comments
 (0)