From 1395d3b4954cf13e6f0eedbc356ac46fc737b6d7 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 9 Feb 2023 06:14:27 -0500 Subject: [PATCH] Fix NameError in audit log target for app commands --- discord/audit_logs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discord/audit_logs.py b/discord/audit_logs.py index 23ba6418e..647b7c2d0 100644 --- a/discord/audit_logs.py +++ b/discord/audit_logs.py @@ -818,6 +818,9 @@ class AuditLogEntry(Hashable): target = self._get_integration_by_app_id(target_id) or self._get_app_command(target_id) if not target: try: + # circular import + from .app_commands import AppCommand + # get application id from extras # if it matches target id, type should be integration target_app = self.extra