Cli̇ent hatasi aliyorum yardim edi̇n

TypeError: Cannot read property ‘client’ of undefined
at new MessageEmbed (C:\Users\murat\Desktop\app\node_modules\discord.js\src\structures\MessageEmbed.js:13:60)
at Object. (C:\Users\murat\Desktop\app\bot.js:312:18)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47

It cannot read property of client because it doesn’t exist. Make sure that client is not null.

const Discord = require('discord.js');
const client = new Discord.Client();
1 Like

@JavaScript it is undefined which probably means it does not exist over being null