so i’ve just moved my bot to glitch, and all commands works fine, except of this one:
const db = require('quick.db')
const ms = require('parse-ms')
const Discord = require('discord.js')
exports.run = async (client, message, args, config) => {
let user = message.author;
if (args == 'coins') {
const resp = await db.startsWith('Balance', { sort: '.data'});
resp.length = 10;
let finalOutput = ' ';
for (var i in resp) {
finalOutput += `**${client.users.get(resp[i].ID.split("_")[1]).tag}** ~-~ ${resp[i].data} :coins: \n`;
}
message.channel.send({"embed":{
title: "**TOP**",
color: 0xf10f3c,
fields:[{
name: "Sorted by coins",
value: finalOutput,
inline:true
}]}})
}}
it says that db.startsWith
is not a function, but if i host it from my pc, it works fine… what am i doing wrong? i’ve already checked node and dependencies versions and they’re all the same (quick.db is ^7.0.0-b21)
just in case:
"express": "^4.16.4",
"discord.js": "^11.4.2",
"moment": "^2.24.0",
"parse-ms": "^2.0.0",
"quick.db": "^7.0.0-b21"
}