nostr-websocket-utils

nostr-websocket-utils v0.3.0


nostr-websocket-utils / createHideMessageEvent

Function: createHideMessageEvent()

createHideMessageEvent(channelId, messageId, reason): NostrWSMessage

Creates a message moderation event

Parameters

channelId

string

Channel ID

messageId

string

Message ID to moderate

reason

string

Moderation reason

Returns

NostrWSMessage

Hide message event

Defined in

nips/nip-28.ts:86