Skip to content

Commit 4eaa09f

Browse files
authored
fix: allow http get_application_commands if sync is false (#659)
(#582)
1 parent 7caf107 commit 4eaa09f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ async def autocomplete_choice_list(ctx, user_input: str = ""):
849849
elif isinstance(command, str):
850850
_command_obj: ApplicationCommand = self._http.cache.interactions.get(command)
851851
if not _command_obj or not _command_obj.id:
852-
if getattr(_command_obj, "guild_id", None) or self._automate_sync:
852+
if getattr(_command_obj, "guild_id", None) or not self._automate_sync:
853853
_application_commands = self._loop.run_until_complete(
854854
self._http.get_application_commands(
855855
application_id=self.me.id,

0 commit comments

Comments
 (0)