Discord
Follow the steps below to token gate your Discord server based on ProductMint Product Pass NFTs that were minted using your ProductMint Organization.
Prerequisites
- A Discord server with a token gating bot installed such as Collab.Land .
Configure Token Gating Rules (TGR)
Required Steps
Create Rules
Start by creating a new Token Gating Rule (TGR) with the role you would like to assign.
Select Chain Type
Select the Chain Type you are using where your Organization and Product Passes are minted.
Set Token Type
Set Token Type to ERC721 for the Product Pass NFT contract.
Set Contract Address
Set Address to the contract address of the Product Pass NFTs for the chain you are using.
Minimum Balance
Set Balance Min Amount to 1 to ensure the user has at least one Product Pass NFT.
Set Metadata Rules
Configure the TGR based on the metadata attributes below to determine who is granted access to the Discord server channel.
TGR Options
There are three primary options for metadata attribute TGRs.
Option 1: Subscription Status
Gate based on the status of a subscription for a particular product using the OR condition.
Active
- Set
TraittoSubscription <Product ID> - Set
ValuetoActive
Cancelled
- Set
TraittoSubscription <Product ID> - Set
ValuetoCancelled
It is important to include the Cancelled subscription status as access should still be granted until the subscription end date at which point the status will automatically change to Past Due.
Option 2: Any Products and Subscriptions
Gate based on the customer just owning your organization’s Product Pass NFT with no particular product or subscription.
- Set
TraittoOrganization - Set
Valueto<Organization NFT Token ID>
Option 3: Product Specific
Gate based on the customer owning a specific product.
- Set
TraittoProduct <Product ID> - Set
Valueto<Product Name>
Deployed Contract Addresses