> For the complete documentation index, see [llms.txt](https://docs.ecdao.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ecdao.org/products/emerald-bot/discovery/users-with-role.md).

# Users with Role

{% hint style="info" %}
Before reading below, make sure you have invited the Emerald bot to your Discord server using [this link](https://discord.com/oauth2/authorize?client_id=907407354427998279\&permissions=294473821264\&scope=bot%20applications.commands).
{% endhint %}

### Command

```
/userswithrole
```

#### Inputs

1. `role`- the role the citizens have
2. `wallet` (*optional*) - only return a specific type of wallet address (will be N/A if they don't have it)

### Helpful Pictures

<figure><img src="/files/4UyANFXAi16LIiD71mTO" alt=""><figcaption><p>Example Usage</p></figcaption></figure>

<figure><img src="/files/HReNp7gcSlYSNh3o48JO" alt=""><figcaption><p>Example Result</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.ecdao.org/products/emerald-bot/discovery/users-with-role.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
