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…
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…
Hello @Kyoya! 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 */`
}
can you share the name of your project?