Загрузка...

Doesn't send message and throws an error

Thread in Node.js created by renameduser_377417 Mar 18, 2023. 135 views

  1. renameduser_377417
    Code
    const { EmbedBuilder, GatewayIntentBits, Client, Collection, ActivityType, Permissions, Message, GuildMember, Guild, ActionRowBuilder, ButtonBuilder, ButtonStyle, Events } = require('discord.js');
    const client = new Client({
    intents: [
    GatewayIntentBits.Guilds,
    GatewayIntentBits.GuildMessages,
    GatewayIntentBits.MessageContent,
    GatewayIntentBits.GuildMembers,
    ],
    });

    const channel = client.channels.cache.get(`1086630285816385636`);
    channel.send(`Баланс страны )`);
    Discord js v14
    TypeError: Cannot read properties of undefined (reading 'send'
     
  2. C_Sharp
    C_Sharp Mar 18, 2023 802 Mar 29, 2019
    Может client.send
    ?
     
    1. renameduser_377417 Topic starter
      C_Sharp, client это не функция
Loading...
Top