我使用的是Discordjs v12.5.3,当我尝试以下命令时: client.channels.cache.get("my-channel-id")?.send("Hello World") 我得到以下错误: Property 'send' does not exist on type 'Channel'.ts(2339) 只有当我忽略以下错误时才会出现
TypeError: Cannot read property 'send' of undefined我做错了什么?我不知道我应该在哪里定义它。可能只是我忘了一件愚蠢的事。client, message, args) { message.channel.send(Suggest something for the Bot or send "canc
问题是当人们添加不存在的卡片时,它不会说卡片不存在。我试着解决这个问题,但我试过的一切都不起作用。我在discord.js v12。deckSlot1) return message.channel.send("You didnt include a card!")console.log(deckSlot1) message.channel.send(`Your fi