Swearing blocker id off null

javascript
#1

Hello! My swearing blocker has an error ;

id of null; const kufurengel = db.fetch(kufur${msg.guild.id}) how to fix?

Err; id of null…

0 Likes

#2

Hello @OzgurTR! It sounds like occasionally the msg.guild object doesn’t have an id. You could check whether that id exists before doing anything with it:

if (msg.guild.id) {
/* your code */`
}
0 Likes

#3

Can You Edit The Code I dont understeand @potch

0 Likes

#4

can you share the name of your project?

0 Likes