Fix NameError in audit log target for app commands

This commit is contained in:
Rapptz 2023-02-09 06:14:27 -05:00
parent d523fc4a83
commit 1395d3b495

View File

@ -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