--> Discord

How to Hat-gate Discord roles using

Giving Hats Access to Specific Discord Roles and Channels with

Following is a detailed description for how to use to Hat-gate Discord roles and channels

1. Connect your Discord server to Guild

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 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.

2.Create a new role in Guild:

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!

4. Give that Guild role access to the Discord role you want to be associated with 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!

5. Give that Discord role access to specific permissions and channels within Discord

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 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, then its name is 'hats-protocol'. authorities will now be displayed on the relevant hats:

Last updated