Browse Source

Update tree.py

pull/9924/head
Soheab_ 10 months ago
parent
commit
5596d736fd
  1. 3
      discord/app_commands/tree.py

3
discord/app_commands/tree.py

@ -1231,9 +1231,8 @@ class CommandTree(Generic[ClientT]):
raise CommandSyncFailure(e, commands) from None raise CommandSyncFailure(e, commands) from None
raise raise
res = [AppCommand(data=d, state=self._state) for d in data]
self._update_command_ids(*data) self._update_command_ids(*data)
return res return [AppCommand(data=d, state=self._state) for d in data]
def _update_command_ids(self, *data: Union[ApplicationCommandInteractionData, ApplicationCommand]) -> None: def _update_command_ids(self, *data: Union[ApplicationCommandInteractionData, ApplicationCommand]) -> None:
if not self.store_app_command_ids: if not self.store_app_command_ids:

Loading…
Cancel
Save