Ask coding questions

← Back to all posts
I got error
Remcoden (0)

when i do the command .balans that i have implemented he gives an error anyone know how fix it?
I use discord.js

Answered by Coder100 (18917) [earned 5 cycles]
View Answer
Coder100 (18917)

Your error is on line 1:

you never properly assigned db as you can see here.

Did you mean:

let Client = require("@replit/database");
let db = new Client();