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.
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.
userIDThe user ID from the user you want the data from.typeThe data you want, it can beMoney,votePointsorfullDatato get all the user’s data.
Last updated
Was this helpful?