Discord-VR
  • Getting Started
  • Events
  • Advanced Set Up
    • Functions
    • DVRClient options
Powered by GitBook
On this page

Was this helpful?

  1. Advanced Set Up

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.

index.js
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);

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.

PreviousEventsNextDVRClient options

Last updated 4 years ago

Was this helpful?