We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I was trying to get a list of communities, so I tried:
const sub = ndk.subscribe({ kinds: [34550] });
I have got the following complaint: Type '34550' is not assignable to type 'NDKKind'.ts(2322)
I would like to request that the kind to get communities definitions is implemented, namely kind 34550 according to https://nostr-nips.com/nip-72
The text was updated successfully, but these errors were encountered:
@gustavonmartins to get all the communities from a pubkey you need to use kinds: [10004] than you use kinds: [34550] to get metadata of the community:
const filter = { kinds: [10004], authors: [pubkey] } and const filter = { kinds: [34550], authors: [communityPubkey], "#d": [commnunityName] }
const filter = { kinds: [10004], authors: [pubkey] }
const filter = { kinds: [34550], authors: [communityPubkey], "#d": [commnunityName] }
Sorry, something went wrong.
No branches or pull requests
I was trying to get a list of communities, so I tried:
const sub = ndk.subscribe({ kinds: [34550] });
I have got the following complaint:
Type '34550' is not assignable to type 'NDKKind'.ts(2322)
I would like to request that the kind to get communities definitions is implemented, namely kind 34550 according to https://nostr-nips.com/nip-72
The text was updated successfully, but these errors were encountered: