-1

It is a topic opened by making use of translation.

The part that gives the error without giving the whole code is as follows:

const Discord = require('discord.js');
const moment = require('moment');
const { prefix } = require('../config.json');

module.exports = async(message,guild,args,member) => {

//console.log(guild,message)
const db = require('quick.db');

const d2 = db.fetch(`dil_${message.guild.id}`);
var lang;
if(!d2) {
lang = require('../lang/tr.json');
} else {
if(d2 == "tr") {
 lang = require('../lang/tr.json');
} else {
    if(d2 == "en") {
        lang = require('../lang/en.json');
    }
}
    }
 }

[the error i got:][1] [1]: https://i.stack.imgur.com/ilaQs.png

DnzCgn
  • 1
  • 1

1 Answers1

0

You should be using:

const { QuickDB } = require("quick.db");
const db = new QuickDB(); 

at the top of the file and remove the following:

const db = require ('quick.db');
Androz2091
  • 2,931
  • 1
  • 9
  • 26