Discord.js v12で、次のコードを組んだのですが、エラーが出てしまいます。
コード
js
1const channel = client.channels.cache 2 .get("824067194396737557"); 3const sousin = "送信したい内容" 4 channel.send(sousin);
エラー
cannot read property 'send' of undefined
回答2件
あなたの回答
tips
プレビュー
投稿2021/05/19 05:44
編集2021/05/19 06:28Discord.js v12で、次のコードを組んだのですが、エラーが出てしまいます。
js
1const channel = client.channels.cache 2 .get("824067194396737557"); 3const sousin = "送信したい内容" 4 channel.send(sousin);
cannot read property 'send' of undefined
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。