13 lines
481 B
Python
13 lines
481 B
Python
from core.audit_core import emit_audit
|
|
|
|
def log_discord_human_action(ministry: str, sphere_label: str, actor_name: str, actor_discord_id: str, action: str, target: str = "", details: dict = None):
|
|
payload = {"sphere": sphere_label, **(details or {})}
|
|
return emit_audit(
|
|
ministry=ministry,
|
|
source="discord",
|
|
actor_name=actor_name,
|
|
actor_discord_id=actor_discord_id,
|
|
action=action,
|
|
target=target,
|
|
details=payload
|
|
)
|