const { EmbedBuilder } = require('discord.js')
try {
if (command){//commandi tanimlamaniz gerek bende const command = require(join(__dirname, "komutlar", `${file}`)); seklindeydi
let sifre = "sifreniz"
message.channel.send(" ❓ Komutu kullanmak için lütfen bir şifre giriniz.")
if (!sifre){
if (!message.author.id == "kendi idniz"){
const sifre = new EmbedBuilder()
sifre.setTitle(" ❎ Şifre yanlış!")
sifre.setDescription(" Girdiğiniz şifre yanlış olduğundan bu komutu kullanamazsınız!")
return message.channel.send( { embeds: [embed] })
}
client.commands.get(command).run(client, message, args);
}
}
catch {
}
}