> For the complete documentation index, see [llms.txt](https://discord-vr.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://discord-vr.js.org/advanced-set-up/functions.md).

# Functions

Discord-VR does not only offer you the option to reward users for voting, but also let’s you fetch a specific user’s data.

{% code title="index.js" %}

```javascript
const { Client } = require("discord.js");
const client = new Client();
const { DVRClient } = require("discord-vr";
const dvrclient = nee DVRClient({
     client,
     userID: "1234567890",
     rewardAmount: 300,
     port: 2000
});

let userd = await dvr.getData(userID, type);
```

{% endcode %}

In this case, we are using the `getData` function which lets you fetch any user’s data using it’s userID.

* `userID` The user ID from the user you want the data from.
* `type` The data you want, it can be `Money`, `votePoints` or `fullData` to get all the user’s data.
