mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-10 07:49:48 +00:00
Fix NameError in audit log target for app commands
This commit is contained in:
parent
d523fc4a83
commit
1395d3b495
@ -818,6 +818,9 @@ class AuditLogEntry(Hashable):
|
|||||||
target = self._get_integration_by_app_id(target_id) or self._get_app_command(target_id)
|
target = self._get_integration_by_app_id(target_id) or self._get_app_command(target_id)
|
||||||
if not target:
|
if not target:
|
||||||
try:
|
try:
|
||||||
|
# circular import
|
||||||
|
from .app_commands import AppCommand
|
||||||
|
|
||||||
# get application id from extras
|
# get application id from extras
|
||||||
# if it matches target id, type should be integration
|
# if it matches target id, type should be integration
|
||||||
target_app = self.extra
|
target_app = self.extra
|
||||||
|
Loading…
x
Reference in New Issue
Block a user