From e78f2b97f0c399c099a43a2ec522fdcd45c88b36 Mon Sep 17 00:00:00 2001 From: GeomKid <51281740+GeomKid@users.noreply.github.com> Date: Thu, 3 Apr 2025 03:04:07 +0800 Subject: [PATCH] fix: Deprecation of default_permission in Application Command --- interactions/client/utils/deserialise_app_cmds.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interactions/client/utils/deserialise_app_cmds.py b/interactions/client/utils/deserialise_app_cmds.py index 723b62bee..721e8926f 100644 --- a/interactions/client/utils/deserialise_app_cmds.py +++ b/interactions/client/utils/deserialise_app_cmds.py @@ -41,7 +41,9 @@ def deserialize_app_cmds(data: list[dict]) -> list["InteractionCommand"]: cmd_dict["scopes"] = [cmd_dict.pop("guild_id", const.GLOBAL_SCOPE)] del cmd_dict["version"] - del cmd_dict["default_permission"] + if hasattr(cmd_dict, "default_permission"): + del cmd_dict["default_permission"] + cmd = command_mapping[cmd_type](**cmd_dict) # type: ignore if options: