DVRClient options
Here you have a guide on what each option does in the DVRClient constructor, and which other options you can apply.
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 asbot
you’ll have to useclient: bot
userID
is 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.port
is the port for express to listen to.
Last updated
Was this helpful?