Create NFT Memberships For Your Discord
⚠️ Warning: This guide currently uses v4 of the Connect SDK. For v5 (latest) code snippets, please check out our documentation while this guide is being updated. ⚠️
In this guide, we'll show you how to use NFTs to grant exclusive access into specific Discord servers or channels.
You can use any of NFT Contracts to grant exclusive access to a Discord server or secret channels within a server.
Setup NFT (if you don't have one)
- Go to https://thirdweb.com/dashboard, connect your wallet and click Deploy new contract
- Select Edition from the pre-built contracts section and click Deploy now
- Add the metadata of your contract, (image, name, description, royalty fees, etc.). This will be displayed when users view the collection page on Opensea.
- Click Deploy Now, and confirm the transaction.
- Click Mint on the top right corner to mint your ERC1155 membership NFTs.
- Add a name and description for your NFT. (This will be displayed when users view the individual NFT page on OpenSea).
- You can mint multiple NFTs which represent different tiers of membership.
- Your NFTs have now been minted, and after a few minutes will appear on Opensea under your collection.
Discord Setup
We'll be using the collab.land Discord bot for this guide.
- Invite the bot into your server using this Invite Link.
- In the #collabland-config channel, send the message
!setup role
to set up a role based on NFT ownership. - Choose the network which you used to mint your NFT's
- select ⚖️ for
Edition (ERC1155)
- Input the details of the NFT you'd like to grant access to the channel.
contract address
can be found in your dashboard under your Edition name. It looks like [0xEDC5...4506] in the screenshot above.token id
can be found at the top of each NFT. It looks like #0, #1, #2, etc.
🎊 That's all! NFT holders can now access private channels
When your community member joins the discord, they need to send !join
to get set up with collab.land.
After setting up with the bot, they will be granted roles that unlock access to the chosen channels based on the chosen NFTs in their wallet.