Skip to content

Welshman Docs / @welshman/app / Reactions

Class: Reactions ​

Defined in: plugins/reactions.ts:13

NIP-25 reactions (kind 7). Reactions are unbounded and keyed by their target event rather than by pubkey or address, so there's no derived collection — read them from the repository directly.

Constructors ​

Constructor ​

new Reactions(app): Reactions

Defined in: plugins/reactions.ts:14

Parameters ​

app ​

IApp

Returns ​

Reactions

Properties ​

app ​

readonly app: IApp

Defined in: plugins/reactions.ts:14

Methods ​

react() ​

react(event, content, fn?): Promise<Command>

Defined in: plugins/reactions.ts:16

Parameters ​

event ​

TrustedEvent

content ​

string

fn? ​

(writer) => void

Returns ​

Promise<Command>