Discord with Collab.Land

Unlock: Create a Lock

In the Unlock Creator Dashboard, create a Lock. After naming the Lock, and filling in the duration, quantity, and price fields, confirm the new lock.

Once confirmed, you should find the address for the lock underneath the title. The address will start with “0x…” and be a string of letters and numbers.

This is the unique identifying address for your lock. Keep this tab open so you can have this address on hand when you set up Collab.Land.

Discord: Install Collab.Land

Invite Collab.Land to your Discord server via this link.

In Discord, go to Server Settings > Roles > Create Role

Create a role that you would like the Collab.Land bot to assign to anyone holding the new Lock you have made. When creating roles, place Collab.Land above any roles the bot is assigning.

Add a private channel and give select roles access (always give Collab.Land access).

Users of certain token holdings will be granted roles with this specific access through the token permissioned roles configuration.

Configuring token permissioned roles

In Discord, there should be a new private channel called “#collabland-config”. In this channel, type “!setup role”.

If you have created the Lock using Ethereum Mainnet, choose the corresponding emoji reaction for “Mainnet”. If you used xDAI to create the lock, choose xDAI.

Next, choose a token based role. Because Unlock are NFTs, choose the option for ERC-721.

Then, copy the lock address that you generated in your Unlock dashboard and paste here. Then, add a space and type the minimum number of tokens (likely 1) and then the maximum number of tokens to gain access (Collab.Land suggests -1 for no limit). Omit the <> brackets.

Once successful, confirm by pressing the emoji reaction for “Add Role”.

Now your Discord and Unlock membership lock should work together to allow members to gain private access to a new Discord channel.

Written by Community Member Austin Robey