Nostr.Event.ChannelMetadata (Nostr Lib v0.2.1) (event) (nip28)

View Source

Channel metadata update

Defined in NIP 28 https://github.com/nostr-protocol/nips/blob/master/28.md

Summary

Functions

Parses a kind 41 event into a ChannelMetadata struct with updated channel info.

Types

t()

@type t() :: %Nostr.Event.ChannelMetadata{
  about: String.t(),
  channel: <<_::32, _::_*8>>,
  event: Nostr.Event.t(),
  name: String.t(),
  other: map(),
  picture: URI.t(),
  relay: URI.t()
}

Functions

parse(event)

@spec parse(event :: Nostr.Event.t()) :: t()

Parses a kind 41 event into a ChannelMetadata struct with updated channel info.