問題描述
最近,Discord 添加了新功能,當用戶回復
消息時,它會引用該消息并添加一小行,即回復者的個人資料圖片與原始發件人的個人資料圖片和消息,如此處所示(我回復來自機器人的消息):
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()
沒有問題,但是機器人只是發送消息,而不是實際回復它(發送回復類型"消息),這是我通過應用程序的 GUI 手動回復消息時顯示的內容(如上所示).
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 服務器的 faq 頻道中對此進行了評論.此功能預計僅在版本 13 中實現,如果您想實現此功能,您必須 fork djs 并編寫自己的回復代碼以使用 消息參考官方discord API網關中的參數
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
這篇關于不和諧.js |回復消息(實際回復帶有回復裝飾)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!