問題描述
最近,Discord 添加了新功能,當用戶回復(fù)
消息時,它會引用該消息并添加一小行,即回復(fù)者的個人資料圖片與原始發(fā)件人的個人資料圖片和消息,如此處所示(我回復(fù)來自機器人的消息):
Recently, Discord added new functionality that when a user replies
to a message, it quotes it and adds a little line that the replier's profile picture with the original sender's profile picture and message, as seen here (me replying to a message from a bot):
是否可以使用 Discord.js 做到這一點?
Is it possible to do it with Discord.js?
目前,我使用 message.reply()
沒有問題,但是機器人只是發(fā)送消息,而不是實際回復(fù)它(發(fā)送回復(fù)類型"消息),這是我通過應(yīng)用程序的 GUI 手動回復(fù)消息時顯示的內(nèi)容(如上所示).
Currently, I've no problem using message.reply()
, however the bot just sends a message, rather than actually reply to it (sends a "reply-typed" message), which is what is shown when I reply to a message via the app's GUI, manually (as shown above).
推薦答案
djs 模塊的維護者已在官方 djs 服務(wù)器的 faq 頻道中對此進行了評論.此功能預(yù)計僅在版本 13 中實現(xiàn),如果您想實現(xiàn)此功能,您必須 fork djs 并編寫自己的回復(fù)代碼以使用 消息參考官方discord API網(wǎng)關(guān)中的參數(shù)
The maintainers of the djs module have made a comment about this in the official djs server's faq channel. This feature is expected to be implemented only in version 13, if you want to implement this you have to fork djs and write your own reply code to use the message reference parameter in the official discord API gateway
這篇關(guān)于不和諧.js |回復(fù)消息(實際回復(fù)帶有回復(fù)裝飾)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!