> 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

Get a CSV file of all the users (both discord names and wallet addresses) that have a certain discord 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="https://2734617986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FogaTXzUJbd9ErdHY45Ri%2Fuploads%2Fudcnom0d1gOzP7xj5x5o%2Fimage.png?alt=media&amp;token=38313bbc-fbdb-4d60-98fb-6979863c147c" alt=""><figcaption><p>Example Usage</p></figcaption></figure>

<figure><img src="https://2734617986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FogaTXzUJbd9ErdHY45Ri%2Fuploads%2F5lSipDFq5SIhNmVXURe3%2Fimage.png?alt=media&amp;token=009798b2-0556-4cbe-bb89-8f184fb84ab4" alt=""><figcaption><p>Example Result</p></figcaption></figure>
