我越來越
DiscordAPIError:無法在 RequestHandler.execute 發送空訊息
├── discord.js@12.5.3
├── dotenv@10.0.0
├── mssql@7.3.0
└── nodemon@2.0.15
基本上它在服務器通道上發送訊息,但在發送訊息后它拋出錯誤
const exampleEmbed = new MessageEmbed()
.setColor('#0099ff')
.setTitle(result1.recordset[0].Title)
.setURL('https://www.ebay.com/itm/' result1.recordset[0].ebay_id)
.setAuthor(_state, _img, 'https://discord.js.org')
.setDescription(output)
.setThumbnail(result1.recordset[0].IMG)
.addFields(
{ name: 'Price [Ebay]', value: result1.recordset[0].Price, inline: true },
{ name: 'Price [Poshmark]', value: result1.recordset[0].POSHMARK_PRICE, inline: true },
{ name: 'Price [Mercari]', value: result1.recordset[0].Mercari_price, inline: true }
)
.setTimestamp()
.setFooter('Bot by programerAnel', 'https://i.imgur.com/wSTFkRM.png');
msg.reply(exampleEmbed)
git 上的所有 100 行代碼:鏈接
uj5u.com熱心網友回復:
查看您的整個代碼,似乎第40行才是真正的問題。每當你發送一些東西時,永遠不要自己做一個變數。它可能是無效的。一定要加標簽,這樣就不會遇到這個錯誤了,除錯起來也方便
msg.reply("relatedLabel: " result1.recordset[0].id)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/363719.html
