# 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="/files/uAWnaJ0zGFHcHZzGTMsb" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/uCWa8hOSAmk3IiUYhjAc" alt=""><figcaption></figcaption></figure>

Head = Trait-Type ; Mecha = Trait-Value


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tektools.app/product-guides/configuring-in-discord/assign-roles-per-attribute-of-nfts-metadata-sub-daos.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
