Hocam kendime de mesaj atamıyorum ben. Çalıştırabildiğiniz kodun require kısımları dahil komple ekleyebilme şansınız var mı? Belki yanlış sürümü kullanıyorumdur.
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
// console.log(client.users.cache)
// var ms = client.users.cache.find(user => user.username == 'MrLorenzo')
// console.log(ms)
client.users.fetch('1003969194301337640').then((user) => {
user.send('hello world');
});
// const user = client.users.cache.get('#7476');
// user.send('<content>');
});
// MrLorenzo
client.on('interactionCreate', async interaction => {
if (!interaction.isChatInputCommand()) return;
if (interaction.commandName === 'ping') {
await interaction.reply('Pong!');
}
});
client.login('token');
Hocam ben şuan telefondayım, benim bottaki eval komutundan senin kodu denemiştim ve benim botta ki discord.js sürümü: v13. Bilgisayara geçtiğim zaman yardımcı olmaya çalışırım.