Proton-io error
Proton-io hata
const Discord = require('discord.js')
module.exports = {
name: "id-ban",
aliases: "id-ban",
description: "İd ile kişi banlarsınız",
usage: "id-ban",
ownerOnly: false,
execute(message, args){
if (!message.member.hasPermission("BAN_MEMBERS")) return message.channel.send("Yetkin yok!")
let User = message.guild.member(message.mentions.users.first()) || message.guild.members.cache.get(args[0])
if (!User) return message.channel.send("Geçersiz kullanıcı..")
if (User.hasPermission("ADMINISTRATOR")) return message.reply("Yetkiliyi banlayamam")
let banReason = args.join(" ").slice(22);
if (!banReason) {
banReason = "Sebep belirtilmedi"
}
console.log(`USER = ${User}`)
User.ban({reason: banReason})
var UserID = User.id
console.log(`USER ID = ${UserID}`)
}
}
bu kodu çalıştırtığımda
TypeError: command.run is not a function
at module.exports.message (C:\Users\Deniz Sağlam\OneDrive\Masaüstü\bot\node_modules\proton-io\index.js:154:21)
at Client.<anonymous> (C:\Users\Deniz Sağlam\OneDrive\Masaüstü\bot\index.js:22:16)
at Client.emit (events.js:327:22)
at MessageCreateAction.handle (C:\Users\Deniz Sağlam\OneDrive\Masaüstü\bot\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (C:\Users\Deniz Sağlam\OneDrive\Masaüstü\bot\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (C:\Users\Deniz Sağlam\OneDrive\Masaüstü\bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31)
at WebSocketShard.onPacket (C:\Users\Deniz Sağlam\OneDrive\Masaüstü\bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)
at WebSocketShard.onMessage (C:\Users\Deniz Sağlam\OneDrive\Masaüstü\bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
at WebSocket.onMessage (C:\Users\Deniz Sağlam\OneDrive\Masaüstü\bot\node_modules\ws\lib\event-target.js:132:16)
at WebSocket.emit (events.js:315:20)
diye bir hata alıyorum nasıl çözebilirim?