Skip to content

Welshman Docs / @welshman/app / Deletes

Class: Deletes

Defined in: app/src/plugins/deletes.ts:12

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: app/src/plugins/deletes.ts:13

Parameters

app

IApp

Returns

Deletes

Properties

app

readonly app: IApp

Defined in: app/src/plugins/deletes.ts:13

Methods

deleteEvent()

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

Defined in: app/src/plugins/deletes.ts:15

Parameters

event

TrustedEvent

fn?

(writer) => void

Returns

Promise<Command>