Skip to content

Issue in getting votes - Top.gg #174

@AnukFD

Description

@AnukFD
const dbots = require('dbots');
const DBots = new dbots.serviceClasses.TopGG(config.TopGG_token);
const gStats = await DBots.userVoted(`678558479841230859`, message.author.id);
(node:23) UnhandledPromiseRejectionWarning: TypeError: Util_1.assert is not a function
    at TopGG.Service._request (/home/container/node_modules/dbots/lib/Interface/Service.js:100:16)
    at TopGG.userVoted (/home/container/node_modules/dbots/lib/Interface/Lists/TopGG.js:131:21)
    at Object.execute (/home/container/commands/Utility/vote.js:25:32)
    at module.exports (/home/container/events/message.js:111:9)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

Metadata

Metadata

Assignees

Labels

type: bugVerified problems that need to be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions