const Discord = require(discord.js);
const client = new Discord.Client();
const Topgg = require ("@top-gg/sdk");
So i dont know about next code Sorry im to early for studying in javascript
In here im using discord.js V12
const Discord = require(discord.js);
const client = new Discord.Client();
const Topgg = require ("@top-gg/sdk");
So i dont know about next code Sorry im to early for studying in javascript
In here im using discord.js V12
Copyright © 2021 Jogjafile Inc.
You're not yet requiring Discord properly. It should be
require("discord.js");otherwise you're trying to require a non-existent variable.Upon scrolling through the Top.gg API Docs it looks like you can use the webhook class to get when a user votes.
Hopefully this helps note that this is untested so may require some tweaking, but definitely read the documentation.