Skip to content

Welshman Docs / @welshman/app / Deletes

Class: Deletes ​

Defined in: plugins/deletes.ts:11

NIP-09 event deletion (kind 5). Builds a delete request targeting the given event and returns a Command for the caller to publish.

Constructors ​

Constructor ​

new Deletes(app): Deletes

Defined in: plugins/deletes.ts:12

Parameters ​

app ​

IApp

Returns ​

Deletes

Properties ​

app ​

readonly app: IApp

Defined in: plugins/deletes.ts:12

Methods ​

deleteEvent() ​

deleteEvent(event, fn?): Promise<Command>

Defined in: plugins/deletes.ts:14

Parameters ​

event ​

TrustedEvent

fn? ​

(writer) => void

Returns ​

Promise<Command>