Guild.xyz --> Discord
How to Hat-gate Discord roles using Guild.xyz
Last updated
How to Hat-gate Discord roles using Guild.xyz
Last updated
Following is a detailed description for how to use Guild.xyz to Hat-gate Discord roles and channels
If you're new to Guild, follow steps 1-5 found here.
If you already have a Guild set up, find your Guild, select "Add reward", and choose "Discord".
Then, in your Discord server settings, add the Guild.xyz bot as an integration by navigating to the "Integrations" page under the "Apps" section. This will create a #verify channel in your Discord server where people can verify with Guild to gain access to the Discord roles associated with their Hat.
If you already have a Guild role associated with this Hat, you can skip this step.
Navigate to your Guild and select "Add Role". We recommend creating a Guild role with the same name and image as the Hat you want to associated it with.
3. Add a requirement that an address must hold a specific Hat token ID in order to claim that Guild role:
If you have already associated that Guild role with the Hat token ID, you can skip this step.
Within that Guild role, select "Add Requirement"
Then select "NFT"
Finally, select "Add requirement".
This Guild role is now gated by the hat!
Within the Guild role, select "Add Reward", select "Add reward" within the Discord box, and connect the Guild role to a new Discord role or an already existing Discord role.
Save the Guild role. The hat now provides access to the designated Discord role via Guild!
Open Discord and select the server associated with this role.
From here, there are two means of setting the Discord authorities associated with this role.
First, open the Server Settings, and select Roles. From here you can manage the display, permissions, and other details of the Discord role associated with this hat.
Second, select the specific Discord channels you want this role to have access to. Make sure these channels are set to "Private".
Then, within each private channel you want to give this role access to, select "Add members or roles" and select the role associated with the hat.
That's it, you're done! All hat wearers have to do to claim the Discord authorities associated with their hat is to visit the #verify channel in your Discord server.
This step will enable the Hats app to automatically detect and display Guild.xyz related authorities in your Hats tree:
Skip this step if your tree's top-hat already includes the relevant Guild(s).
Select "Edit Tree"
Locate and select the tree's top-hat
In the "Hat Basics" section, add the relevant Guilds. A Guild's name can be found in its URL. For example, if the Guild page is https://guild.xyz/hats-protocol, then its name is 'hats-protocol'.
Guild.xyz authorities will now be displayed on the relevant hats:
Next, input the chain your hat is on, add the Hats Protocol contract address, and enter the custom token ID associated with the hat. See for details on how to find the Hats Protocol contract address and specific hat token IDs.