DVRClient options

Here you have a guide on what each option does in the DVRClient constructor, and which other options you can apply.

index.js
const { Client } = require("discord.js");
const client = new Client();
const { DVRClient } = require("discord-vr");
const dvrclient = new DVRClient({
     client,
     userID: String,
     rewardAmount: Number,
     port: Number
});
     
  • client is how your client is declared, if you’ve declared it as client just add client, <other options> however, if you declare it as botyou’ll have to use client: bot

  • userIDis the bot’s user ID as a string, it must be a string since its needed for authorizing the requests from the botlists.

  • rewardAmount is how much a user will get when voting.

  • portis the port for express to listen to.

Last updated