emitEvent method
Future<XRPCResponse<ModEventView> >
emitEvent({
- required UEmitEventEvent event,
- required UEmitEventSubject subject,
- List<
String> ? subjectBlobCids, - required String createdBy,
- Map<
String, String> ? $unknown, - Map<
String, String> ? $headers, - PostClient? $client,
Take a moderation action on an actor.
https://atprotodart.com/docs/lexicons/tools/ozone/moderation/emitEvent
Implementation
Future<XRPCResponse<ModEventView>> emitEvent({
required UEmitEventEvent event,
required UEmitEventSubject subject,
List<String>? subjectBlobCids,
required String createdBy,
Map<String, String>? $unknown,
Map<String, String>? $headers,
PostClient? $client,
}) async =>
await _ctx.post<ModEventView>(
ns.toolsOzoneModerationEmitEvent,
headers: $headers,
body: {
'event': event.toJson(),
'subject': subject.toJson(),
if (subjectBlobCids != null) 'subjectBlobCids': subjectBlobCids,
'createdBy': createdBy,
...?$unknown,
},
to: const ModEventViewConverter().fromJson,
client: $client,
);