> For the complete documentation index, see [llms.txt](https://docs.tektools.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tektools.app/product-guides/configuring-in-discord/assign-roles-per-attribute-of-nfts-metadata-sub-daos.md).

# Assign Roles per attribute of NFTs, (metadata) sub-daos

| Parameter                      | Description                                                                                        |
| ------------------------------ | -------------------------------------------------------------------------------------------------- |
| /collection-role-per-attribute | Running this command will help you add specific roles for a particular trait type within your NFT. |

This command will ask for the trait type and value of the NFT, the collection address, and the role you want to assign to holders who own at least one NFT with the specified trait type and value.

<figure><img src="https://2649312408-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhGcUBDxovibkAp0gIDWo%2Fuploads%2FvxaKzzMy9oh8WAgVyqG0%2Fimage.png?alt=media&amp;token=bbd9a4c3-ce43-43e7-aab0-f4f4a9881465" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2649312408-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhGcUBDxovibkAp0gIDWo%2Fuploads%2FIM7ZiHiWpKU9XPwHh8j6%2Fimage.png?alt=media&amp;token=e63f7c61-e8c9-452f-b73e-11117b21dfe1" alt=""><figcaption></figcaption></figure>

Head = Trait-Type ; Mecha = Trait-Value
