Yardım Discord bot umda böyle hata alıyorum

Rubble#0001
Katılım
1 Nis 2023
Mesajlar
1
Tepkime puanı
0
Şehir
Ankara
Discord botumda hata alıyorum ne yapsam bu kod hatasını çözemedim yardımcı olabilirmisiniz??


Kod:



JavaScript:
const { Client, GatewayIntents } = require('discord.js');

const client = new Client({
  intents: [
      
      GatewayIntents.Guilds, 
      GatewayIntents.GuildMessages,
  
  ],
});

// =============== //

client.on('messageCreate', (message) => {

  if (message.content === 'am?') {

    message.reply({
      content: `Kısmen Evet`,
      allowedMentions: { repliedUser: true },
    });

  }

});
// =============== //

client.on('ready', () => {
  console.log(`Bot başlatıldı: ${client.user.tag}!`);
  client.user.setActivity('your status message', { type: 'WATCHING' })
    .then(presence => console.log(`Activity set to ${presence.activities[0].name}`))
    .catch(console.error);
});

client.login('TOKEN');


Hata:

Screenshot_2023-04-01-16-52-50-14_40deb401b9ffe8e1df2f1cc5ba480b12.jpg
 
Son düzenleme:

uwu

awesomebadname
Katılım
4 Haz 2022
Mesajlar
55
Tepkime puanı
4
Şehir
Aksaray
Bash:
npm uni discord.js && npm i discord.js
 

Konuyu 1 kişi okuyor. (0 kayıtlı üye ve 1 ziyaretçi)

  • Bilgi