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

View Source

Channel creation

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

Summary

Functions

Parses a kind 40 event into a ChannelCreation struct with channel metadata.

Types

t()

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

Functions

parse(event)

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

Parses a kind 40 event into a ChannelCreation struct with channel metadata.