We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06df222 commit 1abdf03Copy full SHA for 1abdf03
interactions/client/utils/deserialise_app_cmds.py
@@ -41,7 +41,9 @@ def deserialize_app_cmds(data: list[dict]) -> list["InteractionCommand"]:
41
cmd_dict["scopes"] = [cmd_dict.pop("guild_id", const.GLOBAL_SCOPE)]
42
43
del cmd_dict["version"]
44
- del cmd_dict["default_permission"]
+ if hasattr(cmd_dict, "default_permission"):
45
+ del cmd_dict["default_permission"]
46
+
47
cmd = command_mapping[cmd_type](**cmd_dict) # type: ignore
48
49
if options:
0 commit comments