From 5596d736fd7e273197fb72d1286b32c1f9dc5462 Mon Sep 17 00:00:00 2001 From: Soheab_ <33902984+Soheab@users.noreply.github.com> Date: Tue, 20 Aug 2024 17:15:00 +0200 Subject: [PATCH] Update tree.py --- discord/app_commands/tree.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/discord/app_commands/tree.py b/discord/app_commands/tree.py index c87996dc5..485da7af9 100644 --- a/discord/app_commands/tree.py +++ b/discord/app_commands/tree.py @@ -1231,9 +1231,8 @@ class CommandTree(Generic[ClientT]): raise CommandSyncFailure(e, commands) from None raise - res = [AppCommand(data=d, state=self._state) for d in 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: if not self.store_app_command_ids: